#4F2EBA#4F2EBA

#4F2EBA is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.8% C 0.204 H 285.1°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#4F2EBA
RGBrgb(79, 46, 186)
HSLhsl(254, 60%, 45%)
HSVhsv(254, 75%, 73%)
CMYKcmyk(57.5%, 75.3%, 0%, 27.1%)
CIE-LABlab(32.17, 50.39, -68.25)
CIE-LCHlch(32.17, 84.84, 306.44°)
OKLaboklab(43.77% 0.0531 -0.1966)
OKLCHoklch(43.77% 0.204 285.1)
XYZxyz(13.0617, 7.1606, 47.1387)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EBA #99BA2E
analogous
#2E53BA #4F2EBA #952EBA
triadic
#4F2EBA #BA4F2E #2EBA4F
tetradic
#4F2EBA #BA2E53 #99BA2E #2EBA95
square
#4F2EBA #BA2E53 #99BA2E #2EBA95
split-complementary
#4F2EBA #BA952E #53BA2E
monochromatic
#251658 #3A2289 #4F2EBA #7051D4 #9882E0

Accessibility & contrast

On white

8.63
#4F2EBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4F2EBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EBA
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EBA#FFFFFF#000000##FFFFFF
##4F2EBA1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#165572
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4f2eba;
/* rgb */ color: rgb(79, 46, 186);
/* oklch */ color: oklch(43.8% 0.204 285.1);
Tailwind
colors: {
  custom: {
    50: '#8c6bd0',
    500: '#4f2eba',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eba;
$custom-light: #8c6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eba",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 186
  },
  "hsl": {
    "h": 254.143,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43768,
    "c": 0.2036,
    "h": 285.1
  },
  "luminance": 0.07161
}

Semantic roles & 50–950 ramp

primary
#4F2EBA
secondary
#B7C97B
accent
#E344BE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4F2EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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