#6A258E#6A258E

#6A258E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.168 H 311.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#6A258E
RGBrgb(106, 37, 142)
HSLhsl(279, 59%, 35%)
HSVhsv(279, 74%, 56%)
CMYKcmyk(25.4%, 73.9%, 0%, 44.3%)
CIE-LABlab(30.26, 47.83, -44.65)
CIE-LCHlch(30.26, 65.43, 316.97°)
OKLaboklab(42% 0.1108 -0.1263)
OKLCHoklch(42% 0.168 311.2)
XYZxyz(11.4870, 6.3406, 26.2047)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A258E #498E25
analogous
#36258E #6A258E #8E257D
triadic
#6A258E #8E6A25 #258E6A
tetradic
#6A258E #8E3625 #498E25 #257D8E
square
#6A258E #8E3625 #498E25 #257D8E
split-complementary
#6A258E #7D8E25 #258E36
monochromatic
#220C2D #46185D #6A258E #8E32BF #AA5AD4

Accessibility & contrast

On white

9.26
#6A258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#6A258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A258E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A258E#FFFFFF#000000##FFFFFF
##6A258E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#14488C
Tritanopia (blue-blind)
#653C57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a258e;
/* rgb */ color: rgb(106, 37, 142);
/* oklch */ color: oklch(42.0% 0.168 311.2);
Tailwind
colors: {
  custom: {
    50: '#9866b0',
    500: '#6a258e',
    950: '#000000',
  },
}
SCSS
$custom: #6a258e;
$custom-light: #9866b0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a258e",
  "rgb": {
    "r": 106,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 279.429,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.42,
    "c": 0.168,
    "h": 311.2
  },
  "luminance": 0.0634
}

Semantic roles & 50–950 ramp

primary
#6A258E
secondary
#78B956
accent
#E2467B
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0E0610
muted
#7E7A7F

Preview Lab

Preview with #6A258E

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

Preview Lab → · Contrast checker → · Palette generator →

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