#4E236E#4E236E

#4E236E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.127 H 307.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4E236E
RGBrgb(78, 35, 110)
HSLhsl(274, 52%, 28%)
HSVhsv(274, 68%, 43%)
CMYKcmyk(29.1%, 68.2%, 0%, 56.9%)
CIE-LABlab(23.50, 34.82, -35.57)
CIE-LCHlch(23.50, 49.78, 314.38°)
OKLaboklab(35.56% 0.0772 -0.1006)
OKLCHoklch(35.56% 0.127 307.5)
XYZxyz(6.5568, 3.9476, 15.1654)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E236E #436E23
analogous
#28236E #4E236E #6E2368
triadic
#4E236E #6E4E23 #236E4E
tetradic
#4E236E #6E2823 #436E23 #23686E
square
#4E236E #6E2823 #436E23 #23686E
split-complementary
#4E236E #686E23 #236E28
monochromatic
#100717 #2D1440 #4E236E #6F329C #8F47C4

Accessibility & contrast

On white

11.73
#4E236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E236E
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E236E#FFFFFF#000000##FFFFFF
##4E236E1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#14386C
Tritanopia (blue-blind)
#493345
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e236e;
/* rgb */ color: rgb(78, 35, 110);
/* oklch */ color: oklch(35.6% 0.127 307.5);
Tailwind
colors: {
  custom: {
    50: '#836198',
    500: '#4e236e',
    950: '#000000',
  },
}
SCSS
$custom: #4e236e;
$custom-light: #836198;
$custom-dark: #000000;
JSON
{
  "hex": "#4e236e",
  "rgb": {
    "r": 78,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 274.4,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35564,
    "c": 0.12685,
    "h": 307.5
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#4E236E
secondary
#70A14C
accent
#DB4D89
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E236E

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

Preview Lab → · Contrast checker → · Palette generator →

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