#6C25B1#6C25B1

#6C25B1 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.204 H 301.3°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6C25B1
RGBrgb(108, 37, 177)
HSLhsl(270, 65%, 42%)
HSVhsv(270, 79%, 69%)
CMYKcmyk(39%, 79.1%, 0%, 30.6%)
CIE-LABlab(33.32, 56.29, -60.89)
CIE-LCHlch(33.32, 82.92, 312.75°)
OKLaboklab(45.08% 0.1059 -0.1739)
OKLCHoklch(45.08% 0.204 301.3)
XYZxyz(14.7798, 7.6855, 42.2912)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C25B1 #6AB125
analogous
#2625B1 #6C25B1 #B125B0
triadic
#6C25B1 #B16C25 #25B16C
tetradic
#6C25B1 #B12625 #6AB125 #25B0B1
square
#6C25B1 #B12625 #6AB125 #25B0B1
split-complementary
#6C25B1 #B0B125 #25B126
monochromatic
#2E104C #4D1A7E #6C25B1 #8B3DD6 #A96FE1

Accessibility & contrast

On white

8.28
#6C25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6C25B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C25B1
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C25B1#FFFFFF#000000##FFFFFF
##6C25B11.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#004EAE
Tritanopia (blue-blind)
#5D4B6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6c25b1;
/* rgb */ color: rgb(108, 37, 177);
/* oklch */ color: oklch(45.1% 0.204 301.3);
Tailwind
colors: {
  custom: {
    50: '#9d68c9',
    500: '#6c25b1',
    950: '#000000',
  },
}
SCSS
$custom: #6c25b1;
$custom-light: #9d68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6c25b1",
  "rgb": {
    "r": 108,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 270.429,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45083,
    "c": 0.20365,
    "h": 301.3
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#6C25B1
secondary
#98C86A
accent
#E83F93
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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