#6235B4#6235B4

#6235B4 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.188 H 293.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6235B4
RGBrgb(98, 53, 180)
HSLhsl(261, 55%, 46%)
HSVhsv(261, 71%, 71%)
CMYKcmyk(45.6%, 70.6%, 0%, 29.4%)
CIE-LABlab(34.88, 48.15, -60.18)
CIE-LCHlch(34.88, 77.07, 308.66°)
OKLaboklab(45.99% 0.0763 -0.1723)
OKLCHoklch(45.99% 0.188 293.9)
XYZxyz(14.5461, 8.4377, 44.0334)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235B4 #87B435
analogous
#3547B4 #6235B4 #A135B4
triadic
#6235B4 #B46235 #35B462
tetradic
#6235B4 #B43547 #87B435 #35B4A1
square
#6235B4 #B43547 #87B435 #35B4A1
split-complementary
#6235B4 #B4A135 #47B435
monochromatic
#2F1955 #482785 #6235B4 #8258CE #A588DC

Accessibility & contrast

On white

7.81
#6235B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6235B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235B4
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235B4#FFFFFF#000000##FFFFFF
##6235B41.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#4A5571
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6235b4;
/* rgb */ color: rgb(98, 53, 180);
/* oklch */ color: oklch(46.0% 0.188 293.9);
Tailwind
colors: {
  custom: {
    50: '#9670cb',
    500: '#6235b4',
    950: '#000000',
  },
}
SCSS
$custom: #6235b4;
$custom-light: #9670cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6235b4",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 180
  },
  "hsl": {
    "h": 261.26,
    "s": 54.506,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45987,
    "c": 0.18847,
    "h": 293.9
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#6235B4
secondary
#ADC67F
accent
#DE4AA9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6235B4

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

Preview Lab → · Contrast checker → · Palette generator →

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