#6235C6#6235C6

#6235C6 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.209 H 290.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#6235C6
RGBrgb(98, 53, 198)
HSLhsl(259, 58%, 49%)
HSVhsv(259, 73%, 78%)
CMYKcmyk(50.5%, 73.2%, 0%, 22.4%)
CIE-LABlab(36.40, 53.05, -68.28)
CIE-LCHlch(36.40, 86.46, 307.85°)
OKLaboklab(47.54% 0.0725 -0.1961)
OKLCHoklch(47.54% 0.209 290.3)
XYZxyz(16.5002, 9.2194, 54.3252)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235C6 #99C635
analogous
#3550C6 #6235C6 #AB35C6
triadic
#6235C6 #C66235 #35C662
tetradic
#6235C6 #C63550 #99C635 #35C6AB
square
#6235C6 #C63550 #99C635 #35C6AB
split-complementary
#6235C6 #C6AB35 #50C635
monochromatic
#321B65 #4A2896 #6235C6 #8663D5 #AC93E2

Accessibility & contrast

On white

7.38
#6235C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#6235C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235C6
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235C6#FFFFFF#000000##FFFFFF
##6235C61.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#0052C3
Tritanopia (blue-blind)
#3F5C7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6235c6;
/* rgb */ color: rgb(98, 53, 198);
/* oklch */ color: oklch(47.5% 0.209 290.3);
Tailwind
colors: {
  custom: {
    50: '#9871d8',
    500: '#6235c6',
    950: '#000000',
  },
}
SCSS
$custom: #6235c6;
$custom-light: #9871d8;
$custom-dark: #000000;
JSON
{
  "hex": "#6235c6",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 198
  },
  "hsl": {
    "h": 258.621,
    "s": 57.769,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47538,
    "c": 0.20906,
    "h": 290.3
  },
  "luminance": 0.0922
}

Semantic roles & 50–950 ramp

primary
#6235C6
secondary
#B8CD8A
accent
#E147B1
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6235C6

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

Preview Lab → · Contrast checker → · Palette generator →

#6235C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva