#4F2E9B#4F2E9B

#4F2E9B is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.167 H 291.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4F2E9B
RGBrgb(79, 46, 155)
HSLhsl(258, 54%, 39%)
HSVhsv(258, 70%, 61%)
CMYKcmyk(49%, 70.3%, 0%, 39.2%)
CIE-LABlab(29.37, 41.40, -54.23)
CIE-LCHlch(29.37, 68.23, 307.36°)
OKLaboklab(40.92% 0.06 -0.1555)
OKLCHoklch(40.92% 0.167 291.1)
XYZxyz(10.1162, 5.9824, 31.6257)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2E9B #7A9B2E
analogous
#2E449B #4F2E9B #862E9B
triadic
#4F2E9B #9B4F2E #2E9B4F
tetradic
#4F2E9B #9B2E44 #7A9B2E #2E9B86
square
#4F2E9B #9B2E44 #7A9B2E #2E9B86
split-complementary
#4F2E9B #9B862E #449B2E
monochromatic
#1F123D #37206C #4F2E9B #6940C6 #8E6FD4

Accessibility & contrast

On white

9.56
#4F2E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4F2E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2E9B
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2E9B#FFFFFF#000000##FFFFFF
##4F2E9B1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#364A61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2e9b;
/* rgb */ color: rgb(79, 46, 155);
/* oklch */ color: oklch(40.9% 0.167 291.1);
Tailwind
colors: {
  custom: {
    50: '#8869b9',
    500: '#4f2e9b',
    950: '#000000',
  },
}
SCSS
$custom: #4f2e9b;
$custom-light: #8869b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2e9b",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 258.165,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40925,
    "c": 0.16665,
    "h": 291.1
  },
  "luminance": 0.05983
}

Semantic roles & 50–950 ramp

primary
#4F2E9B
secondary
#A3BC69
accent
#DE4AB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2E9B

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

Preview Lab → · Contrast checker → · Palette generator →

#4F2E9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva