#4E2F6B#4E2F6B

#4E2F6B is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.3% C 0.103 H 305.8°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#4E2F6B
RGBrgb(78, 47, 107)
HSLhsl(271, 39%, 30%)
HSVhsv(271, 56%, 42%)
CMYKcmyk(27.1%, 56.1%, 0%, 58%)
CIE-LABlab(25.90, 27.06, -29.79)
CIE-LCHlch(25.90, 40.24, 312.26°)
OKLaboklab(37.26% 0.0605 -0.0837)
OKLCHoklch(37.26% 0.103 305.8)
XYZxyz(6.8117, 4.7143, 14.4582)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F6B #4C6B2F
analogous
#302F6B #4E2F6B #6B2F6A
triadic
#4E2F6B #6B4E2F #2F6B4E
tetradic
#4E2F6B #6B302F #4C6B2F #2F6A6B
square
#4E2F6B #6B302F #4C6B2F #2F6A6B
split-complementary
#4E2F6B #6A6B2F #2F6B30
monochromatic
#100A16 #2F1C40 #4E2F6B #6D4296 #8C5DB8

Accessibility & contrast

On white

10.81
#4E2F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4E2F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2F6B
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F6B#FFFFFF#000000##FFFFFF
##4E2F6B1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3C6D
Deuteranopia (green-blind)
#253E6A
Tritanopia (blue-blind)
#493A48
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2f6b;
/* rgb */ color: rgb(78, 47, 107);
/* oklch */ color: oklch(37.3% 0.103 305.8);
Tailwind
colors: {
  custom: {
    50: '#816996',
    500: '#4e2f6b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f6b;
$custom-light: #816996;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f6b",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 107
  },
  "hsl": {
    "h": 271,
    "s": 38.961,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37257,
    "c": 0.10329,
    "h": 305.8
  },
  "luminance": 0.04714
}

Semantic roles & 50–950 ramp

primary
#4E2F6B
secondary
#7A9C59
accent
#CF5992
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4E2F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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