#6235C2#6235C2

#6235C2 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.2% C 0.205 H 291.0°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#6235C2
RGBrgb(98, 53, 194)
HSLhsl(259, 57%, 48%)
HSVhsv(259, 73%, 76%)
CMYKcmyk(49.5%, 72.7%, 0%, 23.9%)
CIE-LABlab(36.06, 51.96, -66.51)
CIE-LCHlch(36.06, 84.39, 308.00°)
OKLaboklab(47.19% 0.0735 -0.1909)
OKLCHoklch(47.19% 0.205 291)
XYZxyz(16.0449, 9.0373, 51.9274)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235C2 #95C235
analogous
#354EC2 #6235C2 #A835C2
triadic
#6235C2 #C26235 #35C262
tetradic
#6235C2 #C2354E #95C235 #35C2A8
square
#6235C2 #C2354E #95C235 #35C2A8
split-complementary
#6235C2 #C2A835 #4EC235
monochromatic
#311B62 #4A2892 #6235C2 #8560D4 #AA91E1

Accessibility & contrast

On white

7.48
#6235C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6235C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235C2
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235C2#FFFFFF#000000##FFFFFF
##6235C21.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#425A78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6235c2;
/* rgb */ color: rgb(98, 53, 194);
/* oklch */ color: oklch(47.2% 0.205 291.0);
Tailwind
colors: {
  custom: {
    50: '#9870d6',
    500: '#6235c2',
    950: '#000000',
  },
}
SCSS
$custom: #6235c2;
$custom-light: #9870d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6235c2",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 259.149,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47186,
    "c": 0.20453,
    "h": 291
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#6235C2
secondary
#B6CC87
accent
#E047B0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6235C2

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

Preview Lab → · Contrast checker → · Palette generator →

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