#6235B8#6235B8

#6235B8 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.193 H 293.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#6235B8
RGBrgb(98, 53, 184)
HSLhsl(261, 55%, 46%)
HSVhsv(261, 71%, 72%)
CMYKcmyk(46.7%, 71.2%, 0%, 27.8%)
CIE-LABlab(35.21, 49.23, -62.01)
CIE-LCHlch(35.21, 79.18, 308.45°)
OKLaboklab(46.32% 0.0756 -0.1777)
OKLCHoklch(46.32% 0.193 293)
XYZxyz(14.9594, 8.6031, 46.2105)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235B8 #8BB835
analogous
#354AB8 #6235B8 #A435B8
triadic
#6235B8 #B86235 #35B862
tetradic
#6235B8 #B8354A #8BB835 #35B8A4
square
#6235B8 #B8354A #8BB835 #35B8A4
split-complementary
#6235B8 #B8A435 #4AB835
monochromatic
#2F1A59 #492788 #6235B8 #835BD0 #A78ADD

Accessibility & contrast

On white

7.72
#6235B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6235B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235B8
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235B8#FFFFFF#000000##FFFFFF
##6235B81.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0050B5
Tritanopia (blue-blind)
#485773
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6235b8;
/* rgb */ color: rgb(98, 53, 184);
/* oklch */ color: oklch(46.3% 0.193 293.0);
Tailwind
colors: {
  custom: {
    50: '#9670ce',
    500: '#6235b8',
    950: '#000000',
  },
}
SCSS
$custom: #6235b8;
$custom-light: #9670ce;
$custom-dark: #000000;
JSON
{
  "hex": "#6235b8",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 260.611,
    "s": 55.274,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46324,
    "c": 0.19309,
    "h": 293
  },
  "luminance": 0.08604
}

Semantic roles & 50–950 ramp

primary
#6235B8
secondary
#AFC781
accent
#DF49AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6235B8

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

Preview Lab → · Contrast checker → · Palette generator →

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