#6A1E98#6A1E98

#6A1E98 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.185 H 308.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#6A1E98
RGBrgb(106, 30, 152)
HSLhsl(277, 67%, 36%)
HSVhsv(277, 80%, 60%)
CMYKcmyk(30.3%, 80.3%, 0%, 40.4%)
CIE-LABlab(30.06, 52.82, -51.12)
CIE-LCHlch(30.06, 73.51, 315.94°)
OKLaboklab(42.1% 0.1153 -0.1453)
OKLCHoklch(42.1% 0.185 308.4)
XYZxyz(12.0744, 6.2599, 30.2719)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1E98 #4C981E
analogous
#2D1E98 #6A1E98 #981E89
triadic
#6A1E98 #986A1E #1E986A
tetradic
#6A1E98 #982D1E #4C981E #1E8998
square
#6A1E98 #982D1E #4C981E #1E8998
split-complementary
#6A1E98 #89981E #1E982D
monochromatic
#230A32 #461465 #6A1E98 #8E28CB #A953DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A1E98#FFFFFF#000000##FFFFFF
##6A1E981.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)
#00449B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#633D5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #6a1e98;
/* rgb */ color: rgb(106, 30, 152);
/* oklch */ color: oklch(42.1% 0.185 308.4);
Tailwind
colors: {
  custom: {
    50: '#9a64b7',
    500: '#6a1e98',
    950: '#000000',
  },
}
SCSS
$custom: #6a1e98;
$custom-light: #9a64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1e98",
  "rgb": {
    "r": 106,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 277.377,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42102,
    "c": 0.18548,
    "h": 308.4
  },
  "luminance": 0.0626
}

Semantic roles & 50–950 ramp

primary
#6A1E98
secondary
#7BC051
accent
#EA3E7F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1E98

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

Preview Lab → · Contrast checker → · Palette generator →

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