#4D296B#4D296B

#4D296B is a dark, moderate violet. Relative luminance 0.042; OKLCH L 36.1% C 0.113 H 306.8°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4D296B
RGBrgb(77, 41, 107)
HSLhsl(273, 45%, 29%)
HSVhsv(273, 62%, 42%)
CMYKcmyk(28%, 61.7%, 0%, 58%)
CIE-LABlab(24.40, 30.39, -32.19)
CIE-LCHlch(24.40, 44.27, 313.35°)
OKLaboklab(36.12% 0.0678 -0.0908)
OKLCHoklch(36.12% 0.113 306.8)
XYZxyz(6.5068, 4.2253, 14.3798)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D296B #476B29
analogous
#2C296B #4D296B #6B2968
triadic
#4D296B #6B4D29 #296B4D
tetradic
#4D296B #6B2C29 #476B29 #29686B
square
#4D296B #6B2C29 #476B29 #29686B
split-complementary
#4D296B #686B29 #296B2C
monochromatic
#100816 #2D183F #4D296B #6D3A97 #8C52BD

Accessibility & contrast

On white

11.38
#4D296B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D296B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D296B
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D296B#FFFFFF#000000##FFFFFF
##4D296B1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E396D
Deuteranopia (green-blind)
#1E3A69
Tritanopia (blue-blind)
#483645
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d296b;
/* rgb */ color: rgb(77, 41, 107);
/* oklch */ color: oklch(36.1% 0.113 306.8);
Tailwind
colors: {
  custom: {
    50: '#816496',
    500: '#4d296b',
    950: '#000000',
  },
}
SCSS
$custom: #4d296b;
$custom-light: #816496;
$custom-dark: #000000;
JSON
{
  "hex": "#4d296b",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 107
  },
  "hsl": {
    "h": 272.727,
    "s": 44.595,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36124,
    "c": 0.11329,
    "h": 306.8
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#4D296B
secondary
#749D52
accent
#D4538E
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A050D
muted
#7C7A7E

Preview Lab

Preview with #4D296B

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

Preview Lab → · Contrast checker → · Palette generator →

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