#4B258C#4B258C

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

Color values

HEX#4B258C
RGBrgb(75, 37, 140)
HSLhsl(262, 58%, 35%)
HSVhsv(262, 74%, 55%)
CMYKcmyk(46.4%, 73.6%, 0%, 45.1%)
CIE-LABlab(25.90, 41.19, -50.68)
CIE-LCHlch(25.90, 65.31, 309.10°)
OKLaboklab(37.95% 0.0658 -0.1452)
OKLCHoklch(37.95% 0.159 294.4)
XYZxyz(8.2956, 4.7122, 25.2783)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B258C #668C25
analogous
#25338C #4B258C #7F258C
triadic
#4B258C #8C4B25 #258C4B
tetradic
#4B258C #8C2533 #668C25 #258C7F
square
#4B258C #8C2533 #668C25 #258C7F
split-complementary
#4B258C #8C7F25 #338C25
monochromatic
#170B2B #31185C #4B258C #6532BC #8658D3

Accessibility & contrast

On white

10.81
#4B258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4B258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B258C
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B258C#FFFFFF#000000##FFFFFF
##4B258C1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4b258c;
/* rgb */ color: rgb(75, 37, 140);
/* oklch */ color: oklch(38.0% 0.159 294.4);
Tailwind
colors: {
  custom: {
    50: '#8463ae',
    500: '#4b258c',
    950: '#000000',
  },
}
SCSS
$custom: #4b258c;
$custom-light: #8463ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b258c",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 262.136,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3795,
    "c": 0.15937,
    "h": 294.4
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#4B258C
secondary
#93B855
accent
#E146A8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4B258C

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

Preview Lab → · Contrast checker → · Palette generator →

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