#4E236F#4E236F

#4E236F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.128 H 307.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4E236F
RGBrgb(78, 35, 111)
HSLhsl(274, 52%, 29%)
HSVhsv(274, 68%, 44%)
CMYKcmyk(29.7%, 68.5%, 0%, 56.5%)
CIE-LABlab(23.57, 35.07, -36.10)
CIE-LCHlch(23.57, 50.33, 314.17°)
OKLaboklab(35.64% 0.0771 -0.1022)
OKLCHoklch(35.64% 0.128 307.1)
XYZxyz(6.6116, 3.9695, 15.4537)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E236F #446F23
analogous
#28236F #4E236F #6F236A
triadic
#4E236F #6F4E23 #236F4E
tetradic
#4E236F #6F2823 #446F23 #236A6F
square
#4E236F #6F2823 #446F23 #236A6F
split-complementary
#4E236F #6A6F23 #236F28
monochromatic
#100717 #2D1440 #4E236F #6F329E #8E47C5

Accessibility & contrast

On white

11.71
#4E236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E236F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E236F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E236F#FFFFFF#000000##FFFFFF
##4E236F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#12386D
Tritanopia (blue-blind)
#493345
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e236f;
/* rgb */ color: rgb(78, 35, 111);
/* oklch */ color: oklch(35.6% 0.128 307.1);
Tailwind
colors: {
  custom: {
    50: '#836199',
    500: '#4e236f',
    950: '#000000',
  },
}
SCSS
$custom: #4e236f;
$custom-light: #836199;
$custom-dark: #000000;
JSON
{
  "hex": "#4e236f",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 273.947,
    "s": 52.055,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3564,
    "c": 0.12803,
    "h": 307.1
  },
  "luminance": 0.03969
}

Semantic roles & 50–950 ramp

primary
#4E236F
secondary
#71A24C
accent
#DB4C8A
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E236F

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

Preview Lab → · Contrast checker → · Palette generator →

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