#6235CD#6235CD

#6235CD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.217 H 289.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#6235CD
RGBrgb(98, 53, 205)
HSLhsl(258, 60%, 51%)
HSVhsv(258, 74%, 80%)
CMYKcmyk(52.2%, 74.1%, 0%, 19.6%)
CIE-LABlab(37.02, 54.96, -71.34)
CIE-LCHlch(37.02, 90.05, 307.61°)
OKLaboklab(48.16% 0.0709 -0.205)
OKLCHoklch(48.16% 0.217 289.1)
XYZxyz(17.3263, 9.5498, 58.6761)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235CD #A0CD35
analogous
#3554CD #6235CD #AE35CD
triadic
#6235CD #CD6235 #35CD62
tetradic
#6235CD #CD3554 #A0CD35 #35CDAE
square
#6235CD #CD3554 #A0CD35 #35CDAE
split-complementary
#6235CD #CDAE35 #54CD35
monochromatic
#331B6D #4A279E #6235CD #8866D9 #AE97E5

Accessibility & contrast

On white

7.22
#6235CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6235CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235CD
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235CD#FFFFFF#000000##FFFFFF
##6235CD1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#395F7F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6235cd;
/* rgb */ color: rgb(98, 53, 205);
/* oklch */ color: oklch(48.2% 0.217 289.1);
Tailwind
colors: {
  custom: {
    50: '#9971dd',
    500: '#6235cd',
    950: '#000000',
  },
}
SCSS
$custom: #6235cd;
$custom-light: #9971dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6235cd",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 205
  },
  "hsl": {
    "h": 257.763,
    "s": 60.317,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48164,
    "c": 0.21695,
    "h": 289.1
  },
  "luminance": 0.09551
}

Semantic roles & 50–950 ramp

primary
#6235CD
secondary
#BDD18D
accent
#E344B4
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6235CD

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

Preview Lab → · Contrast checker → · Palette generator →

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