#4F309D#4F309D

#4F309D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.167 H 290.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#4F309D
RGBrgb(79, 48, 157)
HSLhsl(257, 53%, 40%)
HSVhsv(257, 69%, 62%)
CMYKcmyk(49.7%, 69.4%, 0%, 38.4%)
CIE-LABlab(29.94, 40.88, -54.52)
CIE-LCHlch(29.94, 68.15, 306.86°)
OKLaboklab(41.38% 0.0577 -0.1563)
OKLCHoklch(41.38% 0.167 290.2)
XYZxyz(10.3655, 6.2101, 32.5443)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F309D #7E9D30
analogous
#30489D #4F309D #85309D
triadic
#4F309D #9D4F30 #309D4F
tetradic
#4F309D #9D3048 #7E9D30 #309D85
square
#4F309D #9D3048 #7E9D30 #309D85
split-complementary
#4F309D #9D8530 #489D30
monochromatic
#20133F #37226E #4F309D #6944C6 #8F73D4

Accessibility & contrast

On white

9.37
#4F309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F309D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F309D
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F309D#FFFFFF#000000##FFFFFF
##4F309D1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#354B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f309d;
/* rgb */ color: rgb(79, 48, 157);
/* oklch */ color: oklch(41.4% 0.167 290.2);
Tailwind
colors: {
  custom: {
    50: '#886bbb',
    500: '#4f309d',
    950: '#000000',
  },
}
SCSS
$custom: #4f309d;
$custom-light: #886bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f309d",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 257.064,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41384,
    "c": 0.16662,
    "h": 290.2
  },
  "luminance": 0.0621
}

Semantic roles & 50–950 ramp

primary
#4F309D
secondary
#A6BC6D
accent
#DD4BB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F309D

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

Preview Lab → · Contrast checker → · Palette generator →

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