#6B25B2#6B25B2

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

Color values

HEX#6B25B2
RGBrgb(107, 37, 178)
HSLhsl(270, 66%, 42%)
HSVhsv(270, 79%, 70%)
CMYKcmyk(39.9%, 79.2%, 0%, 30.2%)
CIE-LABlab(33.27, 56.37, -61.57)
CIE-LCHlch(33.27, 83.48, 312.48°)
OKLaboklab(45.05% 0.1041 -0.176)
OKLCHoklch(45.05% 0.204 300.6)
XYZxyz(14.7589, 7.6632, 42.8124)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B25B2 #6CB225
analogous
#2526B2 #6B25B2 #B125B2
triadic
#6B25B2 #B26B25 #25B26B
tetradic
#6B25B2 #B22526 #6CB225 #25B2B1
square
#6B25B2 #B22526 #6CB225 #25B2B1
split-complementary
#6B25B2 #B2B125 #26B225
monochromatic
#2E104D #4D1A7F #6B25B2 #8A3DD7 #A870E1

Accessibility & contrast

On white

8.29
#6B25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6B25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B25B2
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B25B2#FFFFFF#000000##FFFFFF
##6B25B21.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#5B4C6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b25b2;
/* rgb */ color: rgb(107, 37, 178);
/* oklch */ color: oklch(45.0% 0.204 300.6);
Tailwind
colors: {
  custom: {
    50: '#9c68ca',
    500: '#6b25b2',
    950: '#000000',
  },
}
SCSS
$custom: #6b25b2;
$custom-light: #9c68ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b25b2",
  "rgb": {
    "r": 107,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 269.787,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45047,
    "c": 0.20448,
    "h": 300.6
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#6B25B2
secondary
#9AC86B
accent
#E93F95
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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