#4F2F7B#4F2F7B

#4F2F7B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.125 H 300.0°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#4F2F7B
RGBrgb(79, 47, 123)
HSLhsl(265, 45%, 33%)
HSVhsv(265, 62%, 48%)
CMYKcmyk(35.8%, 61.8%, 0%, 51.8%)
CIE-LABlab(27.09, 31.70, -38.08)
CIE-LCHlch(27.09, 49.55, 309.77°)
OKLaboklab(38.5% 0.0623 -0.108)
OKLCHoklch(38.5% 0.125 300)
XYZxyz(7.8153, 5.1253, 19.3126)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F7B #5B7B2F
analogous
#2F357B #4F2F7B #752F7B
triadic
#4F2F7B #7B4F2F #2F7B4F
tetradic
#4F2F7B #7B2F35 #5B7B2F #2F7B75
square
#4F2F7B #7B2F35 #5B7B2F #2F7B75
split-complementary
#4F2F7B #7B752F #357B2F
monochromatic
#160D22 #331E4F #4F2F7B #6B40A7 #8B62C3

Accessibility & contrast

On white

10.37
#4F2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F2F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2F7B
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F7B#FFFFFF#000000##FFFFFF
##4F2F7B1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04407D
Deuteranopia (green-blind)
#163F79
Tritanopia (blue-blind)
#463F50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2f7b;
/* rgb */ color: rgb(79, 47, 123);
/* oklch */ color: oklch(38.5% 0.125 300.0);
Tailwind
colors: {
  custom: {
    50: '#8469a2',
    500: '#4f2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f7b;
$custom-light: #8469a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f7b",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 265.263,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38496,
    "c": 0.12469,
    "h": 300
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

primary
#4F2F7B
secondary
#89AA5C
accent
#D4539E
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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