#6235BA#6235BA

#6235BA is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.195 H 292.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#6235BA
RGBrgb(98, 53, 186)
HSLhsl(260, 56%, 47%)
HSVhsv(260, 72%, 73%)
CMYKcmyk(47.3%, 71.5%, 0%, 27.1%)
CIE-LABlab(35.38, 49.78, -62.92)
CIE-LCHlch(35.38, 80.23, 308.35°)
OKLaboklab(46.49% 0.0752 -0.1804)
OKLCHoklch(46.49% 0.195 292.6)
XYZxyz(15.1706, 8.6875, 47.3224)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235BA #8DBA35
analogous
#354ABA #6235BA #A535BA
triadic
#6235BA #BA6235 #35BA62
tetradic
#6235BA #BA354A #8DBA35 #35BAA5
square
#6235BA #BA354A #8DBA35 #35BAA5
split-complementary
#6235BA #BAA535 #4ABA35
monochromatic
#301A5B #49278A #6235BA #835CD0 #A78BDE

Accessibility & contrast

On white

7.67
#6235BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#6235BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235BA
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235BA#FFFFFF#000000##FFFFFF
##6235BA1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#475774
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6235ba;
/* rgb */ color: rgb(98, 53, 186);
/* oklch */ color: oklch(46.5% 0.195 292.6);
Tailwind
colors: {
  custom: {
    50: '#9770d0',
    500: '#6235ba',
    950: '#000000',
  },
}
SCSS
$custom: #6235ba;
$custom-light: #9770d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6235ba",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 186
  },
  "hsl": {
    "h": 260.301,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46494,
    "c": 0.1954,
    "h": 292.6
  },
  "luminance": 0.08688
}

Semantic roles & 50–950 ramp

primary
#6235BA
secondary
#B1C882
accent
#DF49AC
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6235BA

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

Preview Lab → · Contrast checker → · Palette generator →

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