#4F2BA6#4F2BA6

#4F2BA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.183 H 289.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4F2BA6
RGBrgb(79, 43, 166)
HSLhsl(258, 59%, 41%)
HSVhsv(258, 74%, 65%)
CMYKcmyk(52.4%, 74.1%, 0%, 34.9%)
CIE-LABlab(29.77, 46.15, -60.24)
CIE-LCHlch(29.77, 75.89, 307.46°)
OKLaboklab(41.51% 0.0604 -0.1731)
OKLCHoklch(41.51% 0.183 289.2)
XYZxyz(10.9693, 6.1427, 36.6767)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BA6 #82A62B
analogous
#2B44A6 #4F2BA6 #8C2BA6
triadic
#4F2BA6 #A64F2B #2BA64F
tetradic
#4F2BA6 #A62B44 #82A62B #2BA68C
square
#4F2BA6 #A62B44 #82A62B #2BA68C
split-complementary
#4F2BA6 #A68C2B #44A62B
monochromatic
#211245 #381E75 #4F2BA6 #6A41CE #9071DA

Accessibility & contrast

On white

9.42
#4F2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4F2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BA6
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BA6#FFFFFF#000000##FFFFFF
##4F2BA61.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#2F4C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ba6;
/* rgb */ color: rgb(79, 43, 166);
/* oklch */ color: oklch(41.5% 0.183 289.2);
Tailwind
colors: {
  custom: {
    50: '#8968c1',
    500: '#4f2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ba6;
$custom-light: #8968c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ba6",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 257.561,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41509,
    "c": 0.18334,
    "h": 289.2
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#4F2BA6
secondary
#A8C16B
accent
#E246B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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