#4A236E#4A236E

#4A236E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.0% C 0.126 H 304.6°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#4A236E
RGBrgb(74, 35, 110)
HSLhsl(271, 52%, 28%)
HSVhsv(271, 68%, 43%)
CMYKcmyk(32.7%, 68.2%, 0%, 56.9%)
CIE-LABlab(22.94, 33.84, -36.49)
CIE-LCHlch(22.94, 49.77, 312.83°)
OKLaboklab(35.04% 0.0713 -0.1035)
OKLCHoklch(35.04% 0.126 304.6)
XYZxyz(6.2389, 3.7837, 15.1505)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A236E #476E23
analogous
#24236E #4A236E #6E236C
triadic
#4A236E #6E4A23 #236E4A
tetradic
#4A236E #6E2423 #476E23 #236C6E
square
#4A236E #6E2423 #476E23 #236C6E
split-complementary
#4A236E #6C6E23 #236E24
monochromatic
#100717 #2B1440 #4A236E #69329C #8847C4

Accessibility & contrast

On white

11.95
#4A236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A236E
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A236E#FFFFFF#000000##FFFFFF
##4A236E1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#0D376C
Tritanopia (blue-blind)
#433345
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a236e;
/* rgb */ color: rgb(74, 35, 110);
/* oklch */ color: oklch(35.0% 0.126 304.6);
Tailwind
colors: {
  custom: {
    50: '#806198',
    500: '#4a236e',
    950: '#000000',
  },
}
SCSS
$custom: #4a236e;
$custom-light: #806198;
$custom-dark: #000000;
JSON
{
  "hex": "#4a236e",
  "rgb": {
    "r": 74,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 271.2,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35044,
    "c": 0.12569,
    "h": 304.6
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#4A236E
secondary
#75A14C
accent
#DB4D91
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #4A236E

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

Preview Lab → · Contrast checker → · Palette generator →

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