#4A2FB8#4A2FB8

#4A2FB8 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.3% C 0.201 H 283.1°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4A2FB8
RGBrgb(74, 47, 184)
HSLhsl(252, 59%, 45%)
HSVhsv(252, 74%, 72%)
CMYKcmyk(59.8%, 74.5%, 0%, 27.8%)
CIE-LABlab(31.69, 48.64, -67.87)
CIE-LCHlch(31.69, 83.50, 305.63°)
OKLaboklab(43.26% 0.0456 -0.1956)
OKLCHoklch(43.26% 0.201 283.1)
XYZxyz(12.4896, 6.9487, 46.0212)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FB8 #9DB82F
analogous
#2F58B8 #4A2FB8 #8E2FB8
triadic
#4A2FB8 #B84A2F #2FB84A
tetradic
#4A2FB8 #B82F58 #9DB82F #2FB88E
square
#4A2FB8 #B82F58 #9DB82F #2FB88E
split-complementary
#4A2FB8 #B88E2F #58B82F
monochromatic
#231657 #362387 #4A2FB8 #6B52D3 #9582DF

Accessibility & contrast

On white

8.79
#4A2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4A2FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FB8
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FB8#FFFFFF#000000##FFFFFF
##4A2FB81.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0046B5
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a2fb8;
/* rgb */ color: rgb(74, 47, 184);
/* oklch */ color: oklch(43.3% 0.201 283.1);
Tailwind
colors: {
  custom: {
    50: '#896bcf',
    500: '#4a2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fb8;
$custom-light: #896bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fb8",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 251.825,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43258,
    "c": 0.20085,
    "h": 283.1
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#4A2FB8
secondary
#B9C87B
accent
#E245C4
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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