#4F2EAB#4F2EAB

#4F2EAB is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.186 H 287.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4F2EAB
RGBrgb(79, 46, 171)
HSLhsl(256, 58%, 43%)
HSVhsv(256, 73%, 67%)
CMYKcmyk(53.8%, 73.1%, 0%, 32.9%)
CIE-LABlab(30.77, 46.05, -61.61)
CIE-LCHlch(30.77, 76.91, 306.78°)
OKLaboklab(42.36% 0.0567 -0.1771)
OKLCHoklch(42.36% 0.186 287.8)
XYZxyz(11.5500, 6.5560, 39.1770)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2EAB #8AAB2E
analogous
#2E4BAB #4F2EAB #8E2EAB
triadic
#4F2EAB #AB4F2E #2EAB4F
tetradic
#4F2EAB #AB2E4B #8AAB2E #2EAB8E
square
#4F2EAB #AB2E4B #8AAB2E #2EAB8E
split-complementary
#4F2EAB #AB8E2E #4BAB2E
monochromatic
#22144B #39217B #4F2EAB #6C48CE #9379DB

Accessibility & contrast

On white

9.09
#4F2EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4F2EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2EAB
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2EAB#FFFFFF#000000##FFFFFF
##4F2EAB1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#2A506A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f2eab;
/* rgb */ color: rgb(79, 46, 171);
/* oklch */ color: oklch(42.4% 0.186 287.8);
Tailwind
colors: {
  custom: {
    50: '#8a6ac5',
    500: '#4f2eab',
    950: '#000000',
  },
}
SCSS
$custom: #4f2eab;
$custom-light: #8a6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2eab",
  "rgb": {
    "r": 79,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 255.84,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42358,
    "c": 0.18596,
    "h": 287.8
  },
  "luminance": 0.06557
}

Semantic roles & 50–950 ramp

primary
#4F2EAB
secondary
#AEC372
accent
#E147B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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