#6A2F95#6A2F95

#6A2F95 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.162 H 307.5°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#6A2F95
RGBrgb(106, 47, 149)
HSLhsl(275, 52%, 38%)
HSVhsv(275, 68%, 58%)
CMYKcmyk(28.9%, 68.5%, 0%, 41.6%)
CIE-LABlab(32.41, 44.83, -45.48)
CIE-LCHlch(32.41, 63.86, 314.58°)
OKLaboklab(43.7% 0.0989 -0.1288)
OKLCHoklch(43.7% 0.162 307.5)
XYZxyz(12.3841, 7.2673, 29.1783)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2F95 #5A952F
analogous
#372F95 #6A2F95 #952F8D
triadic
#6A2F95 #956A2F #2F956A
tetradic
#6A2F95 #95372F #5A952F #2F8D95
square
#6A2F95 #95372F #5A952F #2F8D95
split-complementary
#6A2F95 #8D952F #2F9537
monochromatic
#281238 #492066 #6A2F95 #8B3FC2 #A76DD1

Accessibility & contrast

On white

8.56
#6A2F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6A2F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2F95
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2F95#FFFFFF#000000##FFFFFF
##6A2F951.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A98
Deuteranopia (green-blind)
#184D93
Tritanopia (blue-blind)
#63455E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6a2f95;
/* rgb */ color: rgb(106, 47, 149);
/* oklch */ color: oklch(43.7% 0.162 307.5);
Tailwind
colors: {
  custom: {
    50: '#986cb5',
    500: '#6a2f95',
    950: '#000000',
  },
}
SCSS
$custom: #6a2f95;
$custom-light: #986cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2f95",
  "rgb": {
    "r": 106,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 274.706,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.16237,
    "h": 307.5
  },
  "luminance": 0.07267
}

Semantic roles & 50–950 ramp

primary
#6A2F95
secondary
#8AB867
accent
#DB4C89
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0E0711
muted
#7E7A80

Preview Lab

Preview with #6A2F95

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

Preview Lab → · Contrast checker → · Palette generator →

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