#4E297F#4E297F

#4E297F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.139 H 299.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#4E297F
RGBrgb(78, 41, 127)
HSLhsl(266, 51%, 33%)
HSVhsv(266, 68%, 50%)
CMYKcmyk(38.6%, 67.7%, 0%, 50.2%)
CIE-LABlab(25.97, 36.03, -42.41)
CIE-LCHlch(25.97, 55.65, 310.35°)
OKLaboklab(37.75% 0.0681 -0.1207)
OKLCHoklch(37.75% 0.139 299.4)
XYZxyz(7.7646, 4.7378, 20.5800)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E297F #5A7F29
analogous
#292F7F #4E297F #79297F
triadic
#4E297F #7F4E29 #297F4E
tetradic
#4E297F #7F292F #5A7F29 #297F79
square
#4E297F #7F292F #5A7F29 #297F79
split-complementary
#4E297F #7F7929 #2F7F29
monochromatic
#150B22 #321A51 #4E297F #6A38AD #8959C9

Accessibility & contrast

On white

10.78
#4E297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E297F
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E297F#FFFFFF#000000##FFFFFF
##4E297F1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#433D50
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e297f;
/* rgb */ color: rgb(78, 41, 127);
/* oklch */ color: oklch(37.8% 0.139 299.4);
Tailwind
colors: {
  custom: {
    50: '#8465a5',
    500: '#4e297f',
    950: '#000000',
  },
}
SCSS
$custom: #4e297f;
$custom-light: #8465a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e297f",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 265.814,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37753,
    "c": 0.13865,
    "h": 299.4
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#4E297F
secondary
#88AF55
accent
#DB4D9E
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E297F

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

Preview Lab → · Contrast checker → · Palette generator →

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