#4F258A#4F258A

#4F258A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.157 H 297.4°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#4F258A
RGBrgb(79, 37, 138)
HSLhsl(265, 58%, 34%)
HSVhsv(265, 73%, 54%)
CMYKcmyk(42.8%, 73.2%, 0%, 45.9%)
CIE-LABlab(26.22, 41.39, -48.90)
CIE-LCHlch(26.22, 64.06, 310.24°)
OKLaboklab(38.23% 0.0723 -0.1398)
OKLCHoklch(38.23% 0.157 297.4)
XYZxyz(8.4723, 4.8202, 24.5239)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F258A #608A25
analogous
#252E8A #4F258A #81258A
triadic
#4F258A #8A4F25 #258A4F
tetradic
#4F258A #8A252E #608A25 #258A81
square
#4F258A #8A252E #608A25 #258A81
split-complementary
#4F258A #8A8125 #2E8A25
monochromatic
#180B29 #33185A #4F258A #6B32BA #8A57D2

Accessibility & contrast

On white

10.69
#4F258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F258A
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F258A#FFFFFF#000000##FFFFFF
##4F258A1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#403E55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f258a;
/* rgb */ color: rgb(79, 37, 138);
/* oklch */ color: oklch(38.2% 0.157 297.4);
Tailwind
colors: {
  custom: {
    50: '#8663ad',
    500: '#4f258a',
    950: '#000000',
  },
}
SCSS
$custom: #4f258a;
$custom-light: #8663ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f258a",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 264.95,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38233,
    "c": 0.15736,
    "h": 297.4
  },
  "luminance": 0.0482
}

Semantic roles & 50–950 ramp

primary
#4F258A
secondary
#8EB754
accent
#E147A1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F258A

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

Preview Lab → · Contrast checker → · Palette generator →

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