#4A0F76#4A0F76

#4A0F76 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.158 H 304.5°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4A0F76
RGBrgb(74, 15, 118)
HSLhsl(274, 77%, 26%)
HSVhsv(274, 87%, 46%)
CMYKcmyk(37.3%, 87.3%, 0%, 53.7%)
CIE-LABlab(20.46, 44.80, -45.68)
CIE-LCHlch(20.46, 63.98, 314.45°)
OKLaboklab(33.5% 0.0894 -0.1303)
OKLCHoklch(33.5% 0.158 304.5)
XYZxyz(6.2641, 3.1055, 17.4054)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A0F76 #3B760F
analogous
#160F76 #4A0F76 #760F6E
triadic
#4A0F76 #764A0F #0F764A
tetradic
#4A0F76 #76160F #3B760F #0F6E76
square
#4A0F76 #76160F #3B760F #0F6E76
split-complementary
#4A0F76 #6E760F #0F7616
monochromatic
#11031B #280840 #4A0F76 #6C16AC #8E1DE2

Accessibility & contrast

On white

12.95
#4A0F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A0F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A0F76
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A0F76#FFFFFF#000000##FFFFFF
##4A0F761.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#003174
Tritanopia (blue-blind)
#412D45
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a0f76;
/* rgb */ color: rgb(74, 15, 118);
/* oklch */ color: oklch(33.5% 0.158 304.5);
Tailwind
colors: {
  custom: {
    50: '#82579e',
    500: '#4a0f76',
    950: '#000000',
  },
}
SCSS
$custom: #4a0f76;
$custom-light: #82579e;
$custom-dark: #000000;
JSON
{
  "hex": "#4a0f76",
  "rgb": {
    "r": 74,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 274.369,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.335,
    "c": 0.15806,
    "h": 304.5
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#4A0F76
secondary
#68AD33
accent
#F43486
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A0F76

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

Preview Lab → · Contrast checker → · Palette generator →

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