#4F1875#4F1875

#4F1875 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.149 H 307.0°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#4F1875
RGBrgb(79, 24, 117)
HSLhsl(275, 66%, 28%)
HSVhsv(275, 79%, 46%)
CMYKcmyk(32.5%, 79.5%, 0%, 54.1%)
CIE-LABlab(22.30, 42.08, -42.00)
CIE-LCHlch(22.30, 59.45, 315.05°)
OKLaboklab(34.92% 0.0899 -0.1194)
OKLCHoklch(34.92% 0.149 307)
XYZxyz(6.7613, 3.6000, 17.1648)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1875 #3E7518
analogous
#211875 #4F1875 #75186C
triadic
#4F1875 #754F18 #18754F
tetradic
#4F1875 #752118 #3E7518 #186C75
square
#4F1875 #752118 #3E7518 #186C75
split-complementary
#4F1875 #6C7518 #187521
monochromatic
#110519 #2D0E42 #4F1875 #7122A8 #9332D5

Accessibility & contrast

On white

12.21
#4F1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1875
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1875#FFFFFF#000000##FFFFFF
##4F18751.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#482F46
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1875;
/* rgb */ color: rgb(79, 24, 117);
/* oklch */ color: oklch(34.9% 0.149 307.0);
Tailwind
colors: {
  custom: {
    50: '#855c9d',
    500: '#4f1875',
    950: '#000000',
  },
}
SCSS
$custom: #4f1875;
$custom-light: #855c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1875",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 275.484,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.14949,
    "h": 307
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#4F1875
secondary
#6BAA3F
accent
#E93F84
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F1875

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

Preview Lab → · Contrast checker → · Palette generator →

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