#6A1F98#6A1F98

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

Color values

HEX#6A1F98
RGBrgb(106, 31, 152)
HSLhsl(277, 66%, 36%)
HSVhsv(277, 80%, 60%)
CMYKcmyk(30.3%, 79.6%, 0%, 40.4%)
CIE-LABlab(30.18, 52.46, -50.92)
CIE-LCHlch(30.18, 73.11, 315.85°)
OKLaboklab(42.19% 0.1145 -0.1447)
OKLCHoklch(42.19% 0.185 308.4)
XYZxyz(12.1002, 6.3113, 30.2805)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1F98 #4D981F
analogous
#2D1F98 #6A1F98 #981F89
triadic
#6A1F98 #986A1F #1F986A
tetradic
#6A1F98 #982D1F #4D981F #1F8998
square
#6A1F98 #982D1F #4D981F #1F8998
split-complementary
#6A1F98 #89981F #1F982D
monochromatic
#230A32 #471565 #6A1F98 #8D29CB #A955DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #6a1f98;
/* rgb */ color: rgb(106, 31, 152);
/* oklch */ color: oklch(42.2% 0.184 308.4);
Tailwind
colors: {
  custom: {
    50: '#9a64b7',
    500: '#6a1f98',
    950: '#000000',
  },
}
SCSS
$custom: #6a1f98;
$custom-light: #9a64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1f98",
  "rgb": {
    "r": 106,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 277.19,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.1845,
    "h": 308.4
  },
  "luminance": 0.06311
}

Semantic roles & 50–950 ramp

primary
#6A1F98
secondary
#7CC053
accent
#E93F7F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #6A1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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