#4E2BAF#4E2BAF

#4E2BAF is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.194 H 287.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#4E2BAF
RGBrgb(78, 43, 175)
HSLhsl(256, 61%, 43%)
HSVhsv(256, 75%, 69%)
CMYKcmyk(55.4%, 75.4%, 0%, 31.4%)
CIE-LABlab(30.50, 48.58, -64.45)
CIE-LCHlch(30.50, 80.71, 307.01°)
OKLaboklab(42.26% 0.0566 -0.1855)
OKLCHoklch(42.26% 0.194 287)
XYZxyz(11.7413, 6.4420, 41.1739)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BAF #8CAF2B
analogous
#2B4AAF #4E2BAF #902BAF
triadic
#4E2BAF #AF4E2B #2BAF4E
tetradic
#4E2BAF #AF2B4A #8CAF2B #2BAF90
square
#4E2BAF #AF2B4A #8CAF2B #2BAF90
split-complementary
#4E2BAF #AF902B #4AAF2B
monochromatic
#22134D #381F7E #4E2BAF #6B46D1 #9277DE

Accessibility & contrast

On white

9.18
#4E2BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E2BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2BAF
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BAF#FFFFFF#000000##FFFFFF
##4E2BAF1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#23506B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e2baf;
/* rgb */ color: rgb(78, 43, 175);
/* oklch */ color: oklch(42.3% 0.194 287.0);
Tailwind
colors: {
  custom: {
    50: '#8a68c8',
    500: '#4e2baf',
    950: '#000000',
  },
}
SCSS
$custom: #4e2baf;
$custom-light: #8a68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2baf",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 255.909,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42255,
    "c": 0.19393,
    "h": 287
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#4E2BAF
secondary
#AFC570
accent
#E444B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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