#4A258C#4A258C

#4A258C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.159 H 293.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#4A258C
RGBrgb(74, 37, 140)
HSLhsl(262, 58%, 35%)
HSVhsv(262, 74%, 55%)
CMYKcmyk(47.1%, 73.6%, 0%, 45.1%)
CIE-LABlab(25.78, 41.01, -50.88)
CIE-LCHlch(25.78, 65.35, 308.87°)
OKLaboklab(37.84% 0.0643 -0.1458)
OKLCHoklch(37.84% 0.159 293.8)
XYZxyz(8.2179, 4.6722, 25.2747)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A258C #678C25
analogous
#25348C #4A258C #7D258C
triadic
#4A258C #8C4A25 #258C4A
tetradic
#4A258C #8C2534 #678C25 #258C7D
square
#4A258C #8C2534 #678C25 #258C7D
split-complementary
#4A258C #8C7D25 #348C25
monochromatic
#170B2B #30185C #4A258C #6432BC #8458D3

Accessibility & contrast

On white

10.86
#4A258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4A258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A258C
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A258C#FFFFFF#000000##FFFFFF
##4A258C1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a258c;
/* rgb */ color: rgb(74, 37, 140);
/* oklch */ color: oklch(37.8% 0.159 293.8);
Tailwind
colors: {
  custom: {
    50: '#8363ae',
    500: '#4a258c',
    950: '#000000',
  },
}
SCSS
$custom: #4a258c;
$custom-light: #8363ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4a258c",
  "rgb": {
    "r": 74,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 261.553,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37839,
    "c": 0.15931,
    "h": 293.8
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#4A258C
secondary
#94B855
accent
#E146AA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4A258C

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

Preview Lab → · Contrast checker → · Palette generator →

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