#4F127E#4F127E

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

Color values

HEX#4F127E
RGBrgb(79, 18, 126)
HSLhsl(274, 75%, 28%)
HSVhsv(274, 86%, 49%)
CMYKcmyk(37.3%, 85.7%, 0%, 50.6%)
CIE-LABlab(22.31, 46.50, -47.74)
CIE-LCHlch(22.31, 66.64, 314.25°)
OKLaboklab(35.16% 0.0924 -0.1362)
OKLCHoklch(35.16% 0.165 304.1)
XYZxyz(7.2058, 3.6013, 20.0501)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F127E #417E12
analogous
#19127E #4F127E #7E1277
triadic
#4F127E #7E4F12 #127E4F
tetradic
#4F127E #7E1912 #417E12 #12777E
square
#4F127E #7E1912 #417E12 #12777E
split-complementary
#4F127E #777E12 #127E19
monochromatic
#11041B #2D0A48 #4F127E #711AB4 #912AE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F127E#FFFFFF#000000##FFFFFF
##4F127E1.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)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#46314A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f127e;
/* rgb */ color: rgb(79, 18, 126);
/* oklch */ color: oklch(35.2% 0.165 304.1);
Tailwind
colors: {
  custom: {
    50: '#865aa4',
    500: '#4f127e',
    950: '#000000',
  },
}
SCSS
$custom: #4f127e;
$custom-light: #865aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f127e",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 273.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35164,
    "c": 0.16457,
    "h": 304.1
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#4F127E
secondary
#6EB438
accent
#F23688
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F127E

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

Preview Lab → · Contrast checker → · Palette generator →

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