#4A2FBB#4A2FBB

#4A2FBB is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.5% C 0.204 H 282.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#4A2FBB
RGBrgb(74, 47, 187)
HSLhsl(252, 60%, 46%)
HSVhsv(252, 75%, 73%)
CMYKcmyk(60.4%, 74.9%, 0%, 26.7%)
CIE-LABlab(31.98, 49.53, -69.17)
CIE-LCHlch(31.98, 85.07, 305.61°)
OKLaboklab(43.55% 0.0449 -0.1994)
OKLCHoklch(43.55% 0.204 282.7)
XYZxyz(12.8074, 7.0759, 47.6950)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FBB #A0BB2F
analogous
#2F5ABB #4A2FBB #902FBB
triadic
#4A2FBB #BB4A2F #2FBB4A
tetradic
#4A2FBB #BB2F5A #A0BB2F #2FBB90
square
#4A2FBB #BB2F5A #A0BB2F #2FBB90
split-complementary
#4A2FBB #BB902F #5ABB2F
monochromatic
#231659 #37238A #4A2FBB #6C53D4 #9684E0

Accessibility & contrast

On white

8.69
#4A2FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4A2FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FBB
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FBB#FFFFFF#000000##FFFFFF
##4A2FBB1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BF
Deuteranopia (green-blind)
#0046B8
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a2fbb;
/* rgb */ color: rgb(74, 47, 187);
/* oklch */ color: oklch(43.5% 0.204 282.7);
Tailwind
colors: {
  custom: {
    50: '#8a6bd1',
    500: '#4a2fbb',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fbb;
$custom-light: #8a6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fbb",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 187
  },
  "hsl": {
    "h": 251.571,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43549,
    "c": 0.20439,
    "h": 282.7
  },
  "luminance": 0.07077
}

Semantic roles & 50–950 ramp

primary
#4A2FBB
secondary
#BBC97C
accent
#E345C4
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4A2FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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