#6C25B2#6C25B2

#6C25B2 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.2% C 0.205 H 301.1°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#6C25B2
RGBrgb(108, 37, 178)
HSLhsl(270, 66%, 42%)
HSVhsv(270, 79%, 70%)
CMYKcmyk(39.3%, 79.2%, 0%, 30.2%)
CIE-LABlab(33.40, 56.53, -61.35)
CIE-LCHlch(33.40, 83.42, 312.66°)
OKLaboklab(45.17% 0.1056 -0.1753)
OKLCHoklch(45.17% 0.205 301.1)
XYZxyz(14.8798, 7.7255, 42.8181)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C25B2 #6BB225
analogous
#2625B2 #6C25B2 #B225B1
triadic
#6C25B2 #B26C25 #25B26C
tetradic
#6C25B2 #B22625 #6BB225 #25B1B2
square
#6C25B2 #B22625 #6BB225 #25B1B2
split-complementary
#6C25B2 #B1B225 #25B226
monochromatic
#2F104D #4D1A7F #6C25B2 #8B3DD7 #A970E1

Accessibility & contrast

On white

8.25
#6C25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6C25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C25B2
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C25B2#FFFFFF#000000##FFFFFF
##6C25B21.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#5C4B6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6c25b2;
/* rgb */ color: rgb(108, 37, 178);
/* oklch */ color: oklch(45.2% 0.205 301.1);
Tailwind
colors: {
  custom: {
    50: '#9d68ca',
    500: '#6c25b2',
    950: '#000000',
  },
}
SCSS
$custom: #6c25b2;
$custom-light: #9d68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c25b2",
  "rgb": {
    "r": 108,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 270.213,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45169,
    "c": 0.20465,
    "h": 301.1
  },
  "luminance": 0.07726
}

Semantic roles & 50–950 ramp

primary
#6C25B2
secondary
#99C86B
accent
#E93F93
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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