#6235B2#6235B2

#6235B2 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.186 H 294.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#6235B2
RGBrgb(98, 53, 178)
HSLhsl(262, 54%, 45%)
HSVhsv(262, 70%, 70%)
CMYKcmyk(44.9%, 70.2%, 0%, 30.2%)
CIE-LABlab(34.72, 47.60, -59.26)
CIE-LCHlch(34.72, 76.01, 308.77°)
OKLaboklab(45.82% 0.0767 -0.1696)
OKLCHoklch(45.82% 0.186 294.3)
XYZxyz(14.3438, 8.3568, 42.9681)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235B2 #85B235
analogous
#3546B2 #6235B2 #A035B2
triadic
#6235B2 #B26235 #35B262
tetradic
#6235B2 #B23546 #85B235 #35B2A0
square
#6235B2 #B23546 #85B235 #35B2A0
split-complementary
#6235B2 #B2A035 #46B235
monochromatic
#2E1954 #482783 #6235B2 #8257CD #A586DB

Accessibility & contrast

On white

7.86
#6235B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#6235B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235B2
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235B2#FFFFFF#000000##FFFFFF
##6235B21.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#4B546F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6235b2;
/* rgb */ color: rgb(98, 53, 178);
/* oklch */ color: oklch(45.8% 0.186 294.3);
Tailwind
colors: {
  custom: {
    50: '#9670ca',
    500: '#6235b2',
    950: '#000000',
  },
}
SCSS
$custom: #6235b2;
$custom-light: #9670ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6235b2",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 261.6,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4582,
    "c": 0.18615,
    "h": 294.3
  },
  "luminance": 0.08357
}

Semantic roles & 50–950 ramp

primary
#6235B2
secondary
#ABC57E
accent
#DD4AA9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6235B2

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

Preview Lab → · Contrast checker → · Palette generator →

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