#4F2BB2#4F2BB2

#4F2BB2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.197 H 286.9°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#4F2BB2
RGBrgb(79, 43, 178)
HSLhsl(256, 61%, 43%)
HSVhsv(256, 76%, 70%)
CMYKcmyk(55.6%, 75.8%, 0%, 30.2%)
CIE-LABlab(30.89, 49.58, -65.61)
CIE-LCHlch(30.89, 82.23, 307.08°)
OKLaboklab(42.64% 0.0574 -0.1888)
OKLCHoklch(42.64% 0.197 286.9)
XYZxyz(12.1218, 6.6037, 42.7468)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BB2 #8EB22B
analogous
#2B4AB2 #4F2BB2 #922BB2
triadic
#4F2BB2 #B24F2B #2BB24F
tetradic
#4F2BB2 #B22B4A #8EB22B #2BB292
square
#4F2BB2 #B22B4A #8EB22B #2BB292
split-complementary
#4F2BB2 #B2922B #4AB22B
monochromatic
#23134F #391F81 #4F2BB2 #6D48D3 #9479DF

Accessibility & contrast

On white

9.05
#4F2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4F2BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2BB2
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BB2#FFFFFF#000000##FFFFFF
##4F2BB21.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#23516D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4f2bb2;
/* rgb */ color: rgb(79, 43, 178);
/* oklch */ color: oklch(42.6% 0.197 286.9);
Tailwind
colors: {
  custom: {
    50: '#8b69ca',
    500: '#4f2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2bb2;
$custom-light: #8b69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2bb2",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 256,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42636,
    "c": 0.19733,
    "h": 286.9
  },
  "luminance": 0.06604
}

Semantic roles & 50–950 ramp

primary
#4F2BB2
secondary
#B0C772
accent
#E444B9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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