#4F127D#4F127D

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

Color values

HEX#4F127D
RGBrgb(79, 18, 125)
HSLhsl(274, 75%, 28%)
HSVhsv(274, 86%, 49%)
CMYKcmyk(36.8%, 85.6%, 0%, 51%)
CIE-LABlab(22.22, 46.26, -47.25)
CIE-LCHlch(22.22, 66.13, 314.39°)
OKLaboklab(35.07% 0.0927 -0.1348)
OKLCHoklch(35.07% 0.164 304.5)
XYZxyz(7.1416, 3.5756, 19.7120)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F127D #407D12
analogous
#1A127D #4F127D #7D1275
triadic
#4F127D #7D4F12 #127D4F
tetradic
#4F127D #7D1A12 #407D12 #12757D
square
#4F127D #7D1A12 #407D12 #12757D
split-complementary
#4F127D #757D12 #127D1A
monochromatic
#11041B #2D0A48 #4F127D #711AB2 #9229E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F127D#FFFFFF#000000##FFFFFF
##4F127D1.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)
#003480
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#463049
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f127d;
/* rgb */ color: rgb(79, 18, 125);
/* oklch */ color: oklch(35.1% 0.164 304.5);
Tailwind
colors: {
  custom: {
    50: '#865aa4',
    500: '#4f127d',
    950: '#000000',
  },
}
SCSS
$custom: #4f127d;
$custom-light: #865aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f127d",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 274.206,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35073,
    "c": 0.16358,
    "h": 304.5
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#4F127D
secondary
#6DB338
accent
#F13687
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F127D

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

Preview Lab → · Contrast checker → · Palette generator →

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