#4A248C#4A248C

#4A248C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.160 H 294.0°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#4A248C
RGBrgb(74, 36, 140)
HSLhsl(262, 59%, 35%)
HSVhsv(262, 74%, 55%)
CMYKcmyk(47.1%, 74.3%, 0%, 45.1%)
CIE-LABlab(25.60, 41.53, -51.18)
CIE-LCHlch(25.60, 65.91, 309.05°)
OKLaboklab(37.71% 0.0652 -0.1466)
OKLCHoklch(37.71% 0.16 294)
XYZxyz(8.1872, 4.6108, 25.2645)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A248C #668C24
analogous
#24328C #4A248C #7E248C
triadic
#4A248C #8C4A24 #248C4A
tetradic
#4A248C #8C2432 #668C24 #248C7E
square
#4A248C #8C2432 #668C24 #248C7E
split-complementary
#4A248C #8C7E24 #328C24
monochromatic
#170B2B #30175B #4A248C #6431BD #8457D4

Accessibility & contrast

On white

10.92
#4A248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4A248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A248C
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A248C#FFFFFF#000000##FFFFFF
##4A248C1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#373F56
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4a248c;
/* rgb */ color: rgb(74, 36, 140);
/* oklch */ color: oklch(37.7% 0.160 294.0);
Tailwind
colors: {
  custom: {
    50: '#8362ae',
    500: '#4a248c',
    950: '#000000',
  },
}
SCSS
$custom: #4a248c;
$custom-light: #8362ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a248c",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 261.923,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37709,
    "c": 0.16049,
    "h": 294
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#4A248C
secondary
#93B854
accent
#E246A9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A248C

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

Preview Lab → · Contrast checker → · Palette generator →

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