#6A258C#6A258C

#6A258C is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.166 H 312.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#6A258C
RGBrgb(106, 37, 140)
HSLhsl(280, 58%, 35%)
HSVhsv(280, 74%, 55%)
CMYKcmyk(24.3%, 73.6%, 0%, 45.1%)
CIE-LABlab(30.11, 47.38, -43.65)
CIE-LCHlch(30.11, 64.42, 317.35°)
OKLaboklab(41.85% 0.1111 -0.1234)
OKLCHoklch(41.85% 0.166 312)
XYZxyz(11.3382, 6.2811, 25.4210)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A258C #478C25
analogous
#36258C #6A258C #8C257B
triadic
#6A258C #8C6A25 #258C6A
tetradic
#6A258C #8C3625 #478C25 #257B8C
square
#6A258C #8C3625 #478C25 #257B8C
split-complementary
#6A258C #7B8C25 #258C36
monochromatic
#210B2B #45185C #6A258C #8F32BC #AB58D3

Accessibility & contrast

On white

9.31
#6A258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#6A258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A258C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A258C#FFFFFF#000000##FFFFFF
##6A258C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#18488A
Tritanopia (blue-blind)
#663C56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a258c;
/* rgb */ color: rgb(106, 37, 140);
/* oklch */ color: oklch(41.9% 0.166 312.0);
Tailwind
colors: {
  custom: {
    50: '#9866ae',
    500: '#6a258c',
    950: '#000000',
  },
}
SCSS
$custom: #6a258c;
$custom-light: #9866ae;
$custom-dark: #000000;
JSON
{
  "hex": "#6a258c",
  "rgb": {
    "r": 106,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 280.194,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41851,
    "c": 0.166,
    "h": 312
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#6A258C
secondary
#76B855
accent
#E1467A
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A258C

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

Preview Lab → · Contrast checker → · Palette generator →

#6A258C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva