#6B258B#6B258B

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

Color values

HEX#6B258B
RGBrgb(107, 37, 139)
HSLhsl(281, 58%, 35%)
HSVhsv(281, 73%, 55%)
CMYKcmyk(23%, 73.4%, 0%, 45.5%)
CIE-LABlab(30.19, 47.37, -42.90)
CIE-LCHlch(30.19, 63.91, 317.84°)
OKLaboklab(41.92% 0.1126 -0.1211)
OKLCHoklch(41.92% 0.165 312.9)
XYZxyz(11.3843, 6.3134, 25.0400)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B258B #458B25
analogous
#38258B #6B258B #8B2578
triadic
#6B258B #8B6B25 #258B6B
tetradic
#6B258B #8B3825 #458B25 #25788B
square
#6B258B #8B3825 #458B25 #25788B
split-complementary
#6B258B #788B25 #258B38
monochromatic
#210B2A #46185B #6B258B #9032BB #AC58D3

Accessibility & contrast

On white

9.28
#6B258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B258B
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B258B#FFFFFF#000000##FFFFFF
##6B258B1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#1B4989
Tritanopia (blue-blind)
#673B56
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6b258b;
/* rgb */ color: rgb(107, 37, 139);
/* oklch */ color: oklch(41.9% 0.165 312.9);
Tailwind
colors: {
  custom: {
    50: '#9966ad',
    500: '#6b258b',
    950: '#000000',
  },
}
SCSS
$custom: #6b258b;
$custom-light: #9966ad;
$custom-dark: #000000;
JSON
{
  "hex": "#6b258b",
  "rgb": {
    "r": 107,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 281.176,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41915,
    "c": 0.16534,
    "h": 312.9
  },
  "luminance": 0.06313
}

Semantic roles & 50–950 ramp

primary
#6B258B
secondary
#74B755
accent
#E14777
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6B258B

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

Preview Lab → · Contrast checker → · Palette generator →

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