#46157E#46157E

#46157E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.160 H 298.3°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#46157E
RGBrgb(70, 21, 126)
HSLhsl(268, 71%, 29%)
HSVhsv(268, 83%, 49%)
CMYKcmyk(44.4%, 83.3%, 0%, 50.6%)
CIE-LABlab(21.37, 43.99, -49.32)
CIE-LCHlch(21.37, 66.08, 311.73°)
OKLaboklab(34.24% 0.0759 -0.1412)
OKLCHoklch(34.24% 0.16 298.3)
XYZxyz(6.5589, 3.3447, 20.0346)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46157E #4D7E15
analogous
#15197E #46157E #7B157E
triadic
#46157E #7E4615 #157E46
tetradic
#46157E #7E1519 #4D7E15 #157E7B
square
#46157E #7E1519 #4D7E15 #157E7B
split-complementary
#46157E #7E7B15 #197E15
monochromatic
#0F041A #290C4A #46157E #631EB2 #8131DD

Accessibility & contrast

On white

12.58
#46157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#46157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #46157E
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46157E#FFFFFF#000000##FFFFFF
##46157E1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#38334A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #46157e;
/* rgb */ color: rgb(70, 21, 126);
/* oklch */ color: oklch(34.2% 0.160 298.3);
Tailwind
colors: {
  custom: {
    50: '#805aa4',
    500: '#46157e',
    950: '#000000',
  },
}
SCSS
$custom: #46157e;
$custom-light: #805aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#46157e",
  "rgb": {
    "r": 70,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 268,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34238,
    "c": 0.16033,
    "h": 298.3
  },
  "luminance": 0.03345
}

Semantic roles & 50–950 ramp

primary
#46157E
secondary
#7BB33C
accent
#EE3A9A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #46157E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#46157E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva