#6B25A2#6B25A2

#6B25A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.188 H 305.1°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#6B25A2
RGBrgb(107, 37, 162)
HSLhsl(274, 63%, 39%)
HSVhsv(274, 77%, 64%)
CMYKcmyk(34%, 77.2%, 0%, 36.5%)
CIE-LABlab(31.94, 52.60, -54.14)
CIE-LCHlch(31.94, 75.48, 314.17°)
OKLaboklab(43.7% 0.1083 -0.1542)
OKLCHoklch(43.7% 0.188 305.1)
XYZxyz(13.2451, 7.0577, 34.8399)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B25A2 #5CA225
analogous
#2D25A2 #6B25A2 #A2259B
triadic
#6B25A2 #A26B25 #25A26B
tetradic
#6B25A2 #A22D25 #5CA225 #259BA2
square
#6B25A2 #A22D25 #5CA225 #259BA2
split-complementary
#6B25A2 #9BA225 #25A22D
monochromatic
#290E3E #4A1A70 #6B25A2 #8C34D1 #A865DC

Accessibility & contrast

On white

8.71
#6B25A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6B25A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B25A2
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B25A2#FFFFFF#000000##FFFFFF
##6B25A21.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#004BA0
Tritanopia (blue-blind)
#614562
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6b25a2;
/* rgb */ color: rgb(107, 37, 162);
/* oklch */ color: oklch(43.7% 0.188 305.1);
Tailwind
colors: {
  custom: {
    50: '#9b67be',
    500: '#6b25a2',
    950: '#000000',
  },
}
SCSS
$custom: #6b25a2;
$custom-light: #9b67be;
$custom-dark: #000000;
JSON
{
  "hex": "#6b25a2",
  "rgb": {
    "r": 107,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 273.6,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43701,
    "c": 0.18842,
    "h": 305.1
  },
  "luminance": 0.07058
}

Semantic roles & 50–950 ramp

primary
#6B25A2
secondary
#8CC261
accent
#E6428A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B25A2

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

Preview Lab → · Contrast checker → · Palette generator →

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