#4A2FBA#4A2FBA

#4A2FBA is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.203 H 282.8°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4A2FBA
RGBrgb(74, 47, 186)
HSLhsl(252, 60%, 46%)
HSVhsv(252, 75%, 73%)
CMYKcmyk(60.2%, 74.7%, 0%, 27.1%)
CIE-LABlab(31.88, 49.23, -68.74)
CIE-LCHlch(31.88, 84.55, 305.61°)
OKLaboklab(43.45% 0.0451 -0.1981)
OKLCHoklch(43.45% 0.203 282.8)
XYZxyz(12.7007, 7.0332, 47.1331)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FBA #9FBA2F
analogous
#2F59BA #4A2FBA #902FBA
triadic
#4A2FBA #BA4A2F #2FBA4A
tetradic
#4A2FBA #BA2F59 #9FBA2F #2FBA90
square
#4A2FBA #BA2F59 #9FBA2F #2FBA90
split-complementary
#4A2FBA #BA902F #59BA2F
monochromatic
#231658 #372389 #4A2FBA #6C53D3 #9584E0

Accessibility & contrast

On white

8.73
#4A2FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4A2FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FBA
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FBA#FFFFFF#000000##FFFFFF
##4A2FBA1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0046B7
Tritanopia (blue-blind)
#005672
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4a2fba;
/* rgb */ color: rgb(74, 47, 186);
/* oklch */ color: oklch(43.5% 0.203 282.8);
Tailwind
colors: {
  custom: {
    50: '#8a6bd0',
    500: '#4a2fba',
    950: '#000000',
  },
}
SCSS
$custom: #4a2fba;
$custom-light: #8a6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2fba",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 251.655,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43452,
    "c": 0.20322,
    "h": 282.8
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#4A2FBA
secondary
#BAC97C
accent
#E345C4
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4A2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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