#6A258B#6A258B

#6A258B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.8% C 0.165 H 312.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#6A258B
RGBrgb(106, 37, 139)
HSLhsl(281, 58%, 35%)
HSVhsv(281, 73%, 55%)
CMYKcmyk(23.7%, 73.4%, 0%, 45.5%)
CIE-LABlab(30.04, 47.16, -43.15)
CIE-LCHlch(30.04, 63.92, 317.54°)
OKLaboklab(41.78% 0.1112 -0.1219)
OKLCHoklch(41.78% 0.165 312.4)
XYZxyz(11.2648, 6.2517, 25.0344)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A258B #468B25
analogous
#37258B #6A258B #8B2579
triadic
#6A258B #8B6A25 #258B6A
tetradic
#6A258B #8B3725 #468B25 #25798B
square
#6A258B #8B3725 #468B25 #25798B
split-complementary
#6A258B #798B25 #258B37
monochromatic
#200B2A #45185B #6A258B #8F32BB #AB58D3

Accessibility & contrast

On white

9.33
#6A258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#6A258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A258B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A258B#FFFFFF#000000##FFFFFF
##6A258B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#194889
Tritanopia (blue-blind)
#663B55
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a258b;
/* rgb */ color: rgb(106, 37, 139);
/* oklch */ color: oklch(41.8% 0.165 312.4);
Tailwind
colors: {
  custom: {
    50: '#9866ad',
    500: '#6a258b',
    950: '#000000',
  },
}
SCSS
$custom: #6a258b;
$custom-light: #9866ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6a258b",
  "rgb": {
    "r": 106,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 280.588,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41777,
    "c": 0.16499,
    "h": 312.4
  },
  "luminance": 0.06251
}

Semantic roles & 50–950 ramp

primary
#6A258B
secondary
#75B755
accent
#E14779
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A258B

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

Preview Lab → · Contrast checker → · Palette generator →

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