#46157C#46157C

#46157C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.158 H 299.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#46157C
RGBrgb(70, 21, 124)
HSLhsl(269, 71%, 28%)
HSVhsv(269, 83%, 49%)
CMYKcmyk(43.5%, 83.1%, 0%, 51.4%)
CIE-LABlab(21.18, 43.47, -48.36)
CIE-LCHlch(21.18, 65.02, 311.95°)
OKLaboklab(34.05% 0.0766 -0.1384)
OKLCHoklch(34.05% 0.158 299)
XYZxyz(6.4311, 3.2936, 19.3618)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46157C #4B7C15
analogous
#15177C #46157C #79157C
triadic
#46157C #7C4615 #157C46
tetradic
#46157C #7C1517 #4B7C15 #157C79
square
#46157C #7C1517 #4B7C15 #157C79
split-complementary
#46157C #7C7915 #177C15
monochromatic
#0F041A #280C48 #46157C #641EB0 #8230DC

Accessibility & contrast

On white

12.66
#46157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#46157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #46157C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46157C#FFFFFF#000000##FFFFFF
##46157C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#393249
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #46157c;
/* rgb */ color: rgb(70, 21, 124);
/* oklch */ color: oklch(34.0% 0.158 299.0);
Tailwind
colors: {
  custom: {
    50: '#8059a3',
    500: '#46157c',
    950: '#000000',
  },
}
SCSS
$custom: #46157c;
$custom-light: #8059a3;
$custom-dark: #000000;
JSON
{
  "hex": "#46157c",
  "rgb": {
    "r": 70,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 268.544,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34047,
    "c": 0.15818,
    "h": 299
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#46157C
secondary
#79B13C
accent
#EE3A98
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #46157C

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

Preview Lab → · Contrast checker → · Palette generator →

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