#4A236A#4A236A

#4A236A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.7% C 0.121 H 306.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#4A236A
RGBrgb(74, 35, 106)
HSLhsl(273, 50%, 28%)
HSVhsv(273, 67%, 42%)
CMYKcmyk(30.2%, 67%, 0%, 58.4%)
CIE-LABlab(22.65, 32.78, -34.38)
CIE-LCHlch(22.65, 47.50, 313.64°)
OKLaboklab(34.74% 0.0717 -0.0973)
OKLCHoklch(34.74% 0.121 306.4)
XYZxyz(6.0260, 3.6986, 14.0293)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A236A #436A23
analogous
#26236A #4A236A #6A2366
triadic
#4A236A #6A4A23 #236A4A
tetradic
#4A236A #6A2623 #436A23 #23666A
square
#4A236A #6A2623 #436A23 #23666A
split-complementary
#4A236A #666A23 #236A26
monochromatic
#100817 #2A143C #4A236A #6A3298 #8A46C2

Accessibility & contrast

On white

12.07
#4A236A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4A236A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A236A
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A236A#FFFFFF#000000##FFFFFF
##4A236A1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#143668
Tritanopia (blue-blind)
#453243
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4a236a;
/* rgb */ color: rgb(74, 35, 106);
/* oklch */ color: oklch(34.7% 0.121 306.4);
Tailwind
colors: {
  custom: {
    50: '#7f6095',
    500: '#4a236a',
    950: '#000000',
  },
}
SCSS
$custom: #4a236a;
$custom-light: #7f6095;
$custom-dark: #000000;
JSON
{
  "hex": "#4a236a",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 106
  },
  "hsl": {
    "h": 272.958,
    "s": 50.355,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34738,
    "c": 0.12081,
    "h": 306.4
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#4A236A
secondary
#709D4B
accent
#DA4E8D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4A236A

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

Preview Lab → · Contrast checker → · Palette generator →

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