#4F2F7C#4F2F7C

#4F2F7C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.6% C 0.126 H 299.6°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4F2F7C
RGBrgb(79, 47, 124)
HSLhsl(265, 45%, 34%)
HSVhsv(265, 62%, 49%)
CMYKcmyk(36.3%, 62.1%, 0%, 51.4%)
CIE-LABlab(27.16, 31.97, -38.60)
CIE-LCHlch(27.16, 50.12, 309.64°)
OKLaboklab(38.57% 0.0623 -0.1095)
OKLCHoklch(38.57% 0.126 299.6)
XYZxyz(7.8782, 5.1505, 19.6440)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2F7C #5C7C2F
analogous
#2F357C #4F2F7C #752F7C
triadic
#4F2F7C #7C4F2F #2F7C4F
tetradic
#4F2F7C #7C2F35 #5C7C2F #2F7C75
square
#4F2F7C #7C2F35 #5C7C2F #2F7C75
split-complementary
#4F2F7C #7C752F #357C2F
monochromatic
#160D23 #331E50 #4F2F7C #6B40A8 #8A62C3

Accessibility & contrast

On white

10.34
#4F2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2F7C
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2F7C#FFFFFF#000000##FFFFFF
##4F2F7C1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02407E
Deuteranopia (green-blind)
#14407A
Tritanopia (blue-blind)
#453F51
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f2f7c;
/* rgb */ color: rgb(79, 47, 124);
/* oklch */ color: oklch(38.6% 0.126 299.6);
Tailwind
colors: {
  custom: {
    50: '#8469a2',
    500: '#4f2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #4f2f7c;
$custom-light: #8469a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2f7c",
  "rgb": {
    "r": 79,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 264.935,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3857,
    "c": 0.126,
    "h": 299.6
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#4F2F7C
secondary
#8AAA5C
accent
#D5539F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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