#4F127F#4F127F

#4F127F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.166 H 303.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4F127F
RGBrgb(79, 18, 127)
HSLhsl(274, 75%, 28%)
HSVhsv(274, 86%, 50%)
CMYKcmyk(37.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(22.40, 46.74, -48.22)
CIE-LCHlch(22.40, 67.16, 314.11°)
OKLaboklab(35.26% 0.092 -0.1376)
OKLCHoklch(35.26% 0.166 303.8)
XYZxyz(7.2706, 3.6272, 20.3916)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F127F #427F12
analogous
#18127F #4F127F #7F1278
triadic
#4F127F #7F4F12 #127F4F
tetradic
#4F127F #7F1812 #427F12 #12787F
square
#4F127F #7F1812 #427F12 #12787F
split-complementary
#4F127F #787F12 #127F18
monochromatic
#11041B #2E0A49 #4F127F #701AB5 #912BE1

Accessibility & contrast

On white

12.17
#4F127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F127F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F127F#FFFFFF#000000##FFFFFF
##4F127F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#45314A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f127f;
/* rgb */ color: rgb(79, 18, 127);
/* oklch */ color: oklch(35.3% 0.166 303.8);
Tailwind
colors: {
  custom: {
    50: '#865aa5',
    500: '#4f127f',
    950: '#000000',
  },
}
SCSS
$custom: #4f127f;
$custom-light: #865aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f127f",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 273.578,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35256,
    "c": 0.16556,
    "h": 303.8
  },
  "luminance": 0.03627
}

Semantic roles & 50–950 ramp

primary
#4F127F
secondary
#6FB538
accent
#F23689
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F127F

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

Preview Lab → · Contrast checker → · Palette generator →

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