#4B258B#4B258B

#4B258B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.158 H 294.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#4B258B
RGBrgb(75, 37, 139)
HSLhsl(262, 58%, 35%)
HSVhsv(262, 73%, 55%)
CMYKcmyk(46%, 73.4%, 0%, 45.5%)
CIE-LABlab(25.81, 40.91, -50.20)
CIE-LCHlch(25.81, 64.76, 309.18°)
OKLaboklab(37.86% 0.066 -0.1437)
OKLCHoklch(37.86% 0.158 294.7)
XYZxyz(8.2222, 4.6829, 24.8918)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B258B #658B25
analogous
#25328B #4B258B #7E258B
triadic
#4B258B #8B4B25 #258B4B
tetradic
#4B258B #8B2532 #658B25 #258B7E
square
#4B258B #8B2532 #658B25 #258B7E
split-complementary
#4B258B #8B7E25 #328B25
monochromatic
#170B2A #31185B #4B258B #6532BB #8658D3

Accessibility & contrast

On white

10.84
#4B258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B258B
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B258B#FFFFFF#000000##FFFFFF
##4B258B1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#393F55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4b258b;
/* rgb */ color: rgb(75, 37, 139);
/* oklch */ color: oklch(37.9% 0.158 294.7);
Tailwind
colors: {
  custom: {
    50: '#8463ae',
    500: '#4b258b',
    950: '#000000',
  },
}
SCSS
$custom: #4b258b;
$custom-light: #8463ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b258b",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 262.353,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37861,
    "c": 0.15818,
    "h": 294.7
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#4B258B
secondary
#92B755
accent
#E147A8
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #4B258B

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

Preview Lab → · Contrast checker → · Palette generator →

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