#4F309B#4F309B

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

Color values

HEX#4F309B
RGBrgb(79, 48, 155)
HSLhsl(257, 53%, 40%)
HSVhsv(257, 69%, 61%)
CMYKcmyk(49%, 69%, 0%, 39.2%)
CIE-LABlab(29.77, 40.30, -53.58)
CIE-LCHlch(29.77, 67.04, 306.95°)
OKLaboklab(41.21% 0.058 -0.1536)
OKLCHoklch(41.21% 0.164 290.7)
XYZxyz(10.1961, 6.1423, 31.6523)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F309B #7C9B30
analogous
#30479B #4F309B #84309B
triadic
#4F309B #9B4F30 #309B4F
tetradic
#4F309B #9B3047 #7C9B30 #309B84
square
#4F309B #9B3047 #7C9B30 #309B84
split-complementary
#4F309B #9B8430 #479B30
monochromatic
#1F133E #37226C #4F309B #6943C5 #8E72D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F309B#FFFFFF#000000##FFFFFF
##4F309B1.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)
#00489E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#364B61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f309b;
/* rgb */ color: rgb(79, 48, 155);
/* oklch */ color: oklch(41.2% 0.164 290.7);
Tailwind
colors: {
  custom: {
    50: '#876bb9',
    500: '#4f309b',
    950: '#000000',
  },
}
SCSS
$custom: #4f309b;
$custom-light: #876bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f309b",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 257.383,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41212,
    "c": 0.16414,
    "h": 290.7
  },
  "luminance": 0.06143
}

Semantic roles & 50–950 ramp

primary
#4F309B
secondary
#A4BB6C
accent
#DC4CB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F309B

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

Preview Lab → · Contrast checker → · Palette generator →

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