#4F258C#4F258C

#4F258C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.160 H 296.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4F258C
RGBrgb(79, 37, 140)
HSLhsl(264, 58%, 35%)
HSVhsv(264, 74%, 55%)
CMYKcmyk(43.6%, 73.6%, 0%, 45.1%)
CIE-LABlab(26.39, 41.93, -49.87)
CIE-LCHlch(26.39, 65.15, 310.06°)
OKLaboklab(38.41% 0.0719 -0.1426)
OKLCHoklch(38.41% 0.16 296.7)
XYZxyz(8.6184, 4.8787, 25.2935)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F258C #628C25
analogous
#252F8C #4F258C #83258C
triadic
#4F258C #8C4F25 #258C4F
tetradic
#4F258C #8C252F #628C25 #258C83
square
#4F258C #8C252F #628C25 #258C83
split-complementary
#4F258C #8C8325 #2F8C25
monochromatic
#180B2B #34185C #4F258C #6A32BC #8A58D3

Accessibility & contrast

On white

10.63
#4F258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F258C
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F258C#FFFFFF#000000##FFFFFF
##4F258C1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#3F3F56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f258c;
/* rgb */ color: rgb(79, 37, 140);
/* oklch */ color: oklch(38.4% 0.160 296.7);
Tailwind
colors: {
  custom: {
    50: '#8663ae',
    500: '#4f258c',
    950: '#000000',
  },
}
SCSS
$custom: #4f258c;
$custom-light: #8663ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f258c",
  "rgb": {
    "r": 79,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 264.466,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38406,
    "c": 0.1597,
    "h": 296.7
  },
  "luminance": 0.04879
}

Semantic roles & 50–950 ramp

primary
#4F258C
secondary
#8FB855
accent
#E146A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F258C

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

Preview Lab → · Contrast checker → · Palette generator →

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