#4F1874#4F1874

#4F1874 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.148 H 307.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4F1874
RGBrgb(79, 24, 116)
HSLhsl(276, 66%, 27%)
HSVhsv(276, 79%, 45%)
CMYKcmyk(31.9%, 79.3%, 0%, 54.5%)
CIE-LABlab(22.22, 41.84, -41.50)
CIE-LCHlch(22.22, 58.93, 315.23°)
OKLaboklab(34.83% 0.0901 -0.1179)
OKLCHoklch(34.83% 0.148 307.4)
XYZxyz(6.7028, 3.5766, 16.8569)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1874 #3D7418
analogous
#211874 #4F1874 #74186B
triadic
#4F1874 #744F18 #18744F
tetradic
#4F1874 #742118 #3D7418 #186B74
square
#4F1874 #742118 #3D7418 #186B74
split-complementary
#4F1874 #6B7418 #187421
monochromatic
#110519 #2C0E41 #4F1874 #7222A7 #9332D5

Accessibility & contrast

On white

12.24
#4F1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1874
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1874#FFFFFF#000000##FFFFFF
##4F18741.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#492F45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1874;
/* rgb */ color: rgb(79, 24, 116);
/* oklch */ color: oklch(34.8% 0.148 307.4);
Tailwind
colors: {
  custom: {
    50: '#855c9d',
    500: '#4f1874',
    950: '#000000',
  },
}
SCSS
$custom: #4f1874;
$custom-light: #855c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1874",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 275.87,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.14844,
    "h": 307.4
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#4F1874
secondary
#69A93F
accent
#E93F83
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1874

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

Preview Lab → · Contrast checker → · Palette generator →

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