#4A267E#4A267E

#4A267E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.141 H 297.8°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4A267E
RGBrgb(74, 38, 126)
HSLhsl(265, 54%, 32%)
HSVhsv(265, 70%, 49%)
CMYKcmyk(41.3%, 69.8%, 0%, 50.6%)
CIE-LABlab(24.79, 36.54, -43.72)
CIE-LCHlch(24.79, 56.98, 309.89°)
OKLaboklab(36.77% 0.0658 -0.1247)
OKLCHoklch(36.77% 0.141 297.8)
XYZxyz(7.2821, 4.3483, 20.1903)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A267E #5A7E26
analogous
#262E7E #4A267E #76267E
triadic
#4A267E #7E4A26 #267E4A
tetradic
#4A267E #7E262E #5A7E26 #267E76
square
#4A267E #7E262E #5A7E26 #267E76
split-complementary
#4A267E #7E7626 #2E7E26
monochromatic
#130A20 #2E184F #4A267E #6634AD #8453CB

Accessibility & contrast

On white

11.23
#4A267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4A267E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A267E
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A267E#FFFFFF#000000##FFFFFF
##4A267E1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#3D3B4E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4a267e;
/* rgb */ color: rgb(74, 38, 126);
/* oklch */ color: oklch(36.8% 0.141 297.8);
Tailwind
colors: {
  custom: {
    50: '#8163a4',
    500: '#4a267e',
    950: '#000000',
  },
}
SCSS
$custom: #4a267e;
$custom-light: #8163a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a267e",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 264.545,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36766,
    "c": 0.14103,
    "h": 297.8
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#4A267E
secondary
#89B050
accent
#DD4BA1
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A267E

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

Preview Lab → · Contrast checker → · Palette generator →

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