#4A2F72#4A2F72

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

Color values

HEX#4A2F72
RGBrgb(74, 47, 114)
HSLhsl(264, 42%, 32%)
HSVhsv(264, 59%, 45%)
CMYKcmyk(35.1%, 58.8%, 0%, 55.3%)
CIE-LABlab(25.87, 27.86, -34.35)
CIE-LCHlch(25.87, 44.23, 309.04°)
OKLaboklab(37.27% 0.0551 -0.0972)
OKLCHoklch(37.27% 0.112 299.6)
XYZxyz(6.8771, 4.7037, 16.4619)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F72 #57722F
analogous
#2F3672 #4A2F72 #6C2F72
triadic
#4A2F72 #724A2F #2F724A
tetradic
#4A2F72 #722F36 #57722F #2F726C
square
#4A2F72 #722F36 #57722F #2F726C
split-complementary
#4A2F72 #726C2F #36722F
monochromatic
#120B1B #2E1D47 #4A2F72 #66419D #855FBD

Accessibility & contrast

On white

10.82
#4A2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2F72
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F72#FFFFFF#000000##FFFFFF
##4A2F721.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D74
Deuteranopia (green-blind)
#1B3D70
Tritanopia (blue-blind)
#423D4B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a2f72;
/* rgb */ color: rgb(74, 47, 114);
/* oklch */ color: oklch(37.3% 0.112 299.6);
Tailwind
colors: {
  custom: {
    50: '#7f689b',
    500: '#4a2f72',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f72;
$custom-light: #7f689b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f72",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 264.179,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3727,
    "c": 0.11176,
    "h": 299.6
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#4A2F72
secondary
#86A35A
accent
#D156A0
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A060E
muted
#7C7A7E

Preview Lab

Preview with #4A2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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