#4E2F6C#4E2F6C

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

Color values

HEX#4E2F6C
RGBrgb(78, 47, 108)
HSLhsl(270, 39%, 30%)
HSVhsv(270, 56%, 42%)
CMYKcmyk(27.8%, 56.5%, 0%, 57.6%)
CIE-LABlab(25.97, 27.33, -30.33)
CIE-LCHlch(25.97, 40.82, 312.02°)
OKLaboklab(37.32% 0.0606 -0.0853)
OKLCHoklch(37.32% 0.105 305.4)
XYZxyz(6.8646, 4.7355, 14.7369)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2F6C #4D6C2F
analogous
#2F2F6C #4E2F6C #6C2F6B
triadic
#4E2F6C #6C4E2F #2F6C4E
tetradic
#4E2F6C #6C2F2F #4D6C2F #2F6B6C
square
#4E2F6C #6C2F2F #4D6C2F #2F6B6C
split-complementary
#4E2F6C #6B6C2F #2F6C2F
monochromatic
#100A17 #2F1C41 #4E2F6C #6D4297 #8B5DB8

Accessibility & contrast

On white

10.79
#4E2F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2F6C
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2F6C#FFFFFF#000000##FFFFFF
##4E2F6C1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2f6c;
/* rgb */ color: rgb(78, 47, 108);
/* oklch */ color: oklch(37.3% 0.105 305.4);
Tailwind
colors: {
  custom: {
    50: '#826996',
    500: '#4e2f6c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2f6c;
$custom-light: #826996;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2f6c",
  "rgb": {
    "r": 78,
    "g": 47,
    "b": 108
  },
  "hsl": {
    "h": 270.492,
    "s": 39.355,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37323,
    "c": 0.10462,
    "h": 305.4
  },
  "luminance": 0.04735
}

Semantic roles & 50–950 ramp

primary
#4E2F6C
secondary
#7B9D59
accent
#CF5993
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A060D
muted
#7C7A7E

Preview Lab

Preview with #4E2F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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