#4F1175#4F1175

#4F1175 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.3% C 0.157 H 307.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#4F1175
RGBrgb(79, 17, 117)
HSLhsl(277, 75%, 26%)
HSVhsv(277, 85%, 46%)
CMYKcmyk(32.5%, 85.5%, 0%, 54.1%)
CIE-LABlab(21.39, 44.73, -43.50)
CIE-LCHlch(21.39, 62.39, 315.80°)
OKLaboklab(34.28% 0.0959 -0.1237)
OKLCHoklch(34.28% 0.157 307.8)
XYZxyz(6.6351, 3.3476, 17.1228)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1175 #377511
analogous
#1D1175 #4F1175 #751169
triadic
#4F1175 #754F11 #11754F
tetradic
#4F1175 #751D11 #377511 #116975
square
#4F1175 #751D11 #377511 #116975
split-complementary
#4F1175 #697511 #11751D
monochromatic
#12041B #2B0940 #4F1175 #7319AA #9722DF

Accessibility & contrast

On white

12.58
#4F1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4F1175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1175
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1175#FFFFFF#000000##FFFFFF
##4F11751.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#492C44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f1175;
/* rgb */ color: rgb(79, 17, 117);
/* oklch */ color: oklch(34.3% 0.157 307.8);
Tailwind
colors: {
  custom: {
    50: '#85599e',
    500: '#4f1175',
    950: '#000000',
  },
}
SCSS
$custom: #4f1175;
$custom-light: #85599e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1175",
  "rgb": {
    "r": 79,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 277.2,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34276,
    "c": 0.15658,
    "h": 307.8
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#4F1175
secondary
#63AC36
accent
#F1377D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #4F1175

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

Preview Lab → · Contrast checker → · Palette generator →

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