#4A2FB7#4A2FB7

#4A2FB7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.200 H 283.3°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4A2FB7
RGBrgb(74, 47, 183)
HSLhsl(252, 59%, 45%)
HSVhsv(252, 74%, 72%)
CMYKcmyk(59.6%, 74.3%, 0%, 28.2%)
CIE-LABlab(31.59, 48.34, -67.43)
CIE-LCHlch(31.59, 82.97, 305.64°)
OKLaboklab(43.16% 0.0458 -0.1943)
OKLCHoklch(43.16% 0.2 283.3)
XYZxyz(12.3852, 6.9070, 45.4711)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FB7 #9CB72F
analogous
#2F58B7 #4A2FB7 #8E2FB7
triadic
#4A2FB7 #B74A2F #2FB74A
tetradic
#4A2FB7 #B72F58 #9CB72F #2FB78E
square
#4A2FB7 #B72F58 #9CB72F #2FB78E
split-complementary
#4A2FB7 #B78E2F #58B72F
monochromatic
#231656 #362286 #4A2FB7 #6B51D2 #9482DF

Accessibility & contrast

On white

8.82
#4A2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4A2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FB7
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FB7#FFFFFF#000000##FFFFFF
##4A2FB71.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a2fb7;
/* rgb */ color: rgb(74, 47, 183);
/* oklch */ color: oklch(43.2% 0.200 283.3);
Tailwind
colors: {
  custom: {
    50: '#896bce',
    500: '#4a2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fb7;
$custom-light: #896bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fb7",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 251.912,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43162,
    "c": 0.19967,
    "h": 283.3
  },
  "luminance": 0.06908
}

Semantic roles & 50–950 ramp

primary
#4A2FB7
secondary
#B8C87A
accent
#E245C3
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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