#4F1F90#4F1F90

#4F1F90 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.171 H 296.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4F1F90
RGBrgb(79, 31, 144)
HSLhsl(265, 65%, 34%)
HSVhsv(265, 78%, 56%)
CMYKcmyk(45.1%, 78.5%, 0%, 43.5%)
CIE-LABlab(25.73, 45.87, -53.42)
CIE-LCHlch(25.73, 70.41, 310.65°)
OKLaboklab(38.05% 0.0764 -0.153)
OKLCHoklch(38.05% 0.171 296.5)
XYZxyz(8.7471, 4.6557, 26.8179)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1F90 #60901F
analogous
#1F2890 #4F1F90 #881F90
triadic
#4F1F90 #904F1F #1F904F
tetradic
#4F1F90 #901F28 #60901F #1F9088
square
#4F1F90 #901F28 #60901F #1F9088
split-complementary
#4F1F90 #90881F #28901F
monochromatic
#18092B #33145E #4F1F90 #6B2AC2 #8A50D9

Accessibility & contrast

On white

10.87
#4F1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4F1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1F90
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1F90#FFFFFF#000000##FFFFFF
##4F1F901.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#003B8E
Tritanopia (blue-blind)
#3D3E57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f1f90;
/* rgb */ color: rgb(79, 31, 144);
/* oklch */ color: oklch(38.1% 0.171 296.5);
Tailwind
colors: {
  custom: {
    50: '#8760b1',
    500: '#4f1f90',
    950: '#000000',
  },
}
SCSS
$custom: #4f1f90;
$custom-light: #8760b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1f90",
  "rgb": {
    "r": 79,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 265.487,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.17102,
    "h": 296.5
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#4F1F90
secondary
#8EBC4E
accent
#E840A0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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