#4D286F#4D286F

#4D286F is a dark, moderate violet. Relative luminance 0.042; OKLCH L 36.3% C 0.120 H 305.2°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#4D286F
RGBrgb(77, 40, 111)
HSLhsl(271, 47%, 30%)
HSVhsv(271, 64%, 44%)
CMYKcmyk(30.6%, 64%, 0%, 56.5%)
CIE-LABlab(24.46, 32.03, -34.68)
CIE-LCHlch(24.46, 47.20, 312.73°)
OKLaboklab(36.25% 0.0691 -0.0981)
OKLCHoklch(36.25% 0.12 305.2)
XYZxyz(6.6880, 4.2431, 15.5025)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D286F #4A6F28
analogous
#2A286F #4D286F #6F286E
triadic
#4D286F #6F4D28 #286F4D
tetradic
#4D286F #6F2A28 #4A6F28 #286E6F
square
#4D286F #6F2A28 #4A6F28 #286E6F
split-complementary
#4D286F #6E6F28 #286F2A
monochromatic
#100816 #2E1842 #4D286F #6C389C #8B51C0

Accessibility & contrast

On white

11.36
#4D286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D286F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D286F#FFFFFF#000000##FFFFFF
##4D286F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043971
Deuteranopia (green-blind)
#183A6D
Tritanopia (blue-blind)
#473647
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d286f;
/* rgb */ color: rgb(77, 40, 111);
/* oklch */ color: oklch(36.3% 0.120 305.2);
Tailwind
colors: {
  custom: {
    50: '#826499',
    500: '#4d286f',
    950: '#000000',
  },
}
SCSS
$custom: #4d286f;
$custom-light: #826499;
$custom-dark: #000000;
JSON
{
  "hex": "#4d286f",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 271.268,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36254,
    "c": 0.11998,
    "h": 305.2
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#4D286F
secondary
#78A151
accent
#D75191
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4D286F

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

Preview Lab → · Contrast checker → · Palette generator →

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