#4F286E#4F286E

#4F286E is a dark, moderate violet. Relative luminance 0.043; OKLCH L 36.4% C 0.119 H 307.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4F286E
RGBrgb(79, 40, 110)
HSLhsl(273, 47%, 29%)
HSVhsv(273, 64%, 43%)
CMYKcmyk(28.2%, 63.6%, 0%, 56.9%)
CIE-LABlab(24.66, 32.29, -33.70)
CIE-LCHlch(24.66, 46.67, 313.78°)
OKLaboklab(36.43% 0.0721 -0.0951)
OKLCHoklch(36.43% 0.119 307.1)
XYZxyz(6.7971, 4.3057, 15.2218)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F286E #476E28
analogous
#2C286E #4F286E #6E286A
triadic
#4F286E #6E4F28 #286E4F
tetradic
#4F286E #6E2C28 #476E28 #286A6E
square
#4F286E #6E2C28 #476E28 #286A6E
split-complementary
#4F286E #6A6E28 #286E2C
monochromatic
#100816 #2F1841 #4F286E #6F389B #8F51C0

Accessibility & contrast

On white

11.28
#4F286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F286E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F286E#FFFFFF#000000##FFFFFF
##4F286E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083970
Deuteranopia (green-blind)
#1C3B6C
Tritanopia (blue-blind)
#4A3647
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f286e;
/* rgb */ color: rgb(79, 40, 110);
/* oklch */ color: oklch(36.4% 0.119 307.1);
Tailwind
colors: {
  custom: {
    50: '#836498',
    500: '#4f286e',
    950: '#000000',
  },
}
SCSS
$custom: #4f286e;
$custom-light: #836498;
$custom-dark: #000000;
JSON
{
  "hex": "#4f286e",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 273.429,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36434,
    "c": 0.11934,
    "h": 307.1
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#4F286E
secondary
#74A051
accent
#D6518C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4F286E

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

Preview Lab → · Contrast checker → · Palette generator →

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