#4F127C#4F127C

#4F127C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 35.0% C 0.163 H 304.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4F127C
RGBrgb(79, 18, 124)
HSLhsl(275, 75%, 28%)
HSVhsv(275, 85%, 49%)
CMYKcmyk(36.3%, 85.5%, 0%, 51.4%)
CIE-LABlab(22.12, 46.03, -46.76)
CIE-LCHlch(22.12, 65.62, 314.55°)
OKLaboklab(34.98% 0.093 -0.1334)
OKLCHoklch(34.98% 0.163 304.9)
XYZxyz(7.0780, 3.5502, 19.3772)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F127C #3F7C12
analogous
#1A127C #4F127C #7C1274
triadic
#4F127C #7C4F12 #127C4F
tetradic
#4F127C #7C1A12 #3F7C12 #12747C
square
#4F127C #7C1A12 #3F7C12 #12747C
split-complementary
#4F127C #747C12 #127C1A
monochromatic
#11041B #2D0A47 #4F127C #711AB1 #9229E0

Accessibility & contrast

On white

12.28
#4F127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4F127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F127C
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F127C#FFFFFF#000000##FFFFFF
##4F127C1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#463049
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f127c;
/* rgb */ color: rgb(79, 18, 124);
/* oklch */ color: oklch(35.0% 0.163 304.9);
Tailwind
colors: {
  custom: {
    50: '#8659a3',
    500: '#4f127c',
    950: '#000000',
  },
}
SCSS
$custom: #4f127c;
$custom-light: #8659a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f127c",
  "rgb": {
    "r": 79,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 274.528,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34982,
    "c": 0.16259,
    "h": 304.9
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#4F127C
secondary
#6CB238
accent
#F13786
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F127C

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

Preview Lab → · Contrast checker → · Palette generator →

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