#4B258E#4B258E

#4B258E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.162 H 293.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4B258E
RGBrgb(75, 37, 142)
HSLhsl(262, 59%, 35%)
HSVhsv(262, 74%, 56%)
CMYKcmyk(47.2%, 73.9%, 0%, 44.3%)
CIE-LABlab(26.07, 41.75, -51.64)
CIE-LCHlch(26.07, 66.41, 308.96°)
OKLaboklab(38.13% 0.0653 -0.148)
OKLCHoklch(38.13% 0.162 293.8)
XYZxyz(8.4444, 4.7717, 26.0621)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B258E #688E25
analogous
#25348E #4B258E #7F258E
triadic
#4B258E #8E4B25 #258E4B
tetradic
#4B258E #8E2534 #688E25 #258E7F
square
#4B258E #8E2534 #688E25 #258E7F
split-complementary
#4B258E #8E7F25 #348E25
monochromatic
#180C2D #31185D #4B258E #6532BF #865AD4

Accessibility & contrast

On white

10.74
#4B258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4B258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B258E
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B258E#FFFFFF#000000##FFFFFF
##4B258E1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#374057
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4b258e;
/* rgb */ color: rgb(75, 37, 142);
/* oklch */ color: oklch(38.1% 0.162 293.8);
Tailwind
colors: {
  custom: {
    50: '#8463b0',
    500: '#4b258e',
    950: '#000000',
  },
}
SCSS
$custom: #4b258e;
$custom-light: #8463b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b258e",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 261.714,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38129,
    "c": 0.16174,
    "h": 293.8
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#4B258E
secondary
#95B956
accent
#E246A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4B258E

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

Preview Lab → · Contrast checker → · Palette generator →

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