#4A2F71#4A2F71

#4A2F71 is a dark, moderate violet. Relative luminance 0.047; OKLCH L 37.2% C 0.110 H 299.9°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#4A2F71
RGBrgb(74, 47, 113)
HSLhsl(265, 41%, 31%)
HSVhsv(265, 58%, 44%)
CMYKcmyk(34.5%, 58.4%, 0%, 55.7%)
CIE-LABlab(25.81, 27.58, -33.82)
CIE-LCHlch(25.81, 43.64, 309.19°)
OKLaboklab(37.2% 0.0551 -0.0957)
OKLCHoklch(37.2% 0.11 299.9)
XYZxyz(6.8205, 4.6811, 16.1638)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2F71 #56712F
analogous
#2F3571 #4A2F71 #6B2F71
triadic
#4A2F71 #714A2F #2F714A
tetradic
#4A2F71 #712F35 #56712F #2F716B
square
#4A2F71 #712F35 #56712F #2F716B
split-complementary
#4A2F71 #716B2F #35712F
monochromatic
#110B1B #2E1D46 #4A2F71 #66419C #855EBC

Accessibility & contrast

On white

10.85
#4A2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A2F71
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2F71#FFFFFF#000000##FFFFFF
##4A2F711.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D73
Deuteranopia (green-blind)
#1D3D6F
Tritanopia (blue-blind)
#423C4B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a2f71;
/* rgb */ color: rgb(74, 47, 113);
/* oklch */ color: oklch(37.2% 0.110 299.9);
Tailwind
colors: {
  custom: {
    50: '#7f689a',
    500: '#4a2f71',
    950: '#000000',
  },
}
SCSS
$custom: #4a2f71;
$custom-light: #7f689a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2f71",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 264.545,
    "s": 41.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37199,
    "c": 0.11039,
    "h": 299.9
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#4A2F71
secondary
#85A25A
accent
#D1579F
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A060E
muted
#7C7A7E

Preview Lab

Preview with #4A2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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