#46157F#46157F

#46157F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.161 H 297.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#46157F
RGBrgb(70, 21, 127)
HSLhsl(268, 72%, 29%)
HSVhsv(268, 83%, 50%)
CMYKcmyk(44.9%, 83.5%, 0%, 50.2%)
CIE-LABlab(21.47, 44.25, -49.79)
CIE-LCHlch(21.47, 66.61, 311.62°)
OKLaboklab(34.34% 0.0756 -0.1426)
OKLCHoklch(34.34% 0.161 297.9)
XYZxyz(6.6237, 3.3706, 20.3762)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#46157F #4E7F15
analogous
#15197F #46157F #7B157F
triadic
#46157F #7F4615 #157F46
tetradic
#46157F #7F1519 #4E7F15 #157F7B
square
#46157F #7F1519 #4E7F15 #157F7B
split-complementary
#46157F #7F7B15 #197F15
monochromatic
#0E041A #290C4A #46157F #631EB4 #8131DD

Accessibility & contrast

On white

12.54
#46157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #46157F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##46157F#FFFFFF#000000##FFFFFF
##46157F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#37334B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #46157f;
/* rgb */ color: rgb(70, 21, 127);
/* oklch */ color: oklch(34.3% 0.161 297.9);
Tailwind
colors: {
  custom: {
    50: '#805aa5',
    500: '#46157f',
    950: '#000000',
  },
}
SCSS
$custom: #46157f;
$custom-light: #805aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#46157f",
  "rgb": {
    "r": 70,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 267.736,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34335,
    "c": 0.1614,
    "h": 297.9
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#46157F
secondary
#7CB43C
accent
#EE399B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #46157F

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

Preview Lab → · Contrast checker → · Palette generator →

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