#4F0F7D#4F0F7D

#4F0F7D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.166 H 304.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4F0F7D
RGBrgb(79, 15, 125)
HSLhsl(275, 79%, 27%)
HSVhsv(275, 88%, 49%)
CMYKcmyk(36.8%, 88%, 0%, 51%)
CIE-LABlab(21.89, 47.22, -47.79)
CIE-LCHlch(21.89, 67.18, 314.66°)
OKLaboklab(34.85% 0.0947 -0.1363)
OKLCHoklch(34.85% 0.166 304.8)
XYZxyz(7.0961, 3.4846, 19.6968)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F0F7D #3D7D0F
analogous
#180F7D #4F0F7D #7D0F74
triadic
#4F0F7D #7D4F0F #0F7D4F
tetradic
#4F0F7D #7D180F #3D7D0F #0F747D
square
#4F0F7D #7D180F #3D7D0F #0F747D
split-complementary
#4F0F7D #747D0F #0F7D18
monochromatic
#11031B #2C0846 #4F0F7D #7216B4 #9322E4

Accessibility & contrast

On white

12.37
#4F0F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4F0F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F0F7D
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F0F7D#FFFFFF#000000##FFFFFF
##4F0F7D1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#462F49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f0f7d;
/* rgb */ color: rgb(79, 15, 125);
/* oklch */ color: oklch(34.8% 0.166 304.8);
Tailwind
colors: {
  custom: {
    50: '#8658a4',
    500: '#4f0f7d',
    950: '#000000',
  },
}
SCSS
$custom: #4f0f7d;
$custom-light: #8658a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f0f7d",
  "rgb": {
    "r": 79,
    "g": 15,
    "b": 125
  },
  "hsl": {
    "h": 274.909,
    "s": 78.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34847,
    "c": 0.16602,
    "h": 304.8
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#4F0F7D
secondary
#69B434
accent
#F53384
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F0F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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