#4A2FAF#4A2FAF

#4A2FAF is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.190 H 284.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4A2FAF
RGBrgb(74, 47, 175)
HSLhsl(253, 58%, 44%)
HSVhsv(253, 73%, 69%)
CMYKcmyk(57.7%, 73.1%, 0%, 31.4%)
CIE-LABlab(30.84, 45.95, -63.91)
CIE-LCHlch(30.84, 78.72, 305.72°)
OKLaboklab(42.4% 0.0477 -0.184)
OKLCHoklch(42.4% 0.19 284.5)
XYZxyz(11.5761, 6.5833, 41.2098)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2FAF #94AF2F
analogous
#2F54AF #4A2FAF #8A2FAF
triadic
#4A2FAF #AF4A2F #2FAF4A
tetradic
#4A2FAF #AF2F54 #94AF2F #2FAF8A
square
#4A2FAF #AF2F54 #94AF2F #2FAF8A
split-complementary
#4A2FAF #AF8A2F #54AF2F
monochromatic
#21154F #36227F #4A2FAF #684CCF #917CDC

Accessibility & contrast

On white

9.06
#4A2FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4A2FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2FAF
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2FAF#FFFFFF#000000##FFFFFF
##4A2FAF1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#14526C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4a2faf;
/* rgb */ color: rgb(74, 47, 175);
/* oklch */ color: oklch(42.4% 0.190 284.5);
Tailwind
colors: {
  custom: {
    50: '#886ac8',
    500: '#4a2faf',
    950: '#000000',
  },
}
SCSS
$custom: #4a2faf;
$custom-light: #886ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2faf",
  "rgb": {
    "r": 74,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 252.656,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42399,
    "c": 0.19011,
    "h": 284.5
  },
  "luminance": 0.06584
}

Semantic roles & 50–950 ramp

primary
#4A2FAF
secondary
#B4C475
accent
#E147C0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4A2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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