#6235C8#6235C8

#6235C8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.211 H 289.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#6235C8
RGBrgb(98, 53, 200)
HSLhsl(258, 58%, 50%)
HSVhsv(258, 74%, 78%)
CMYKcmyk(51%, 73.5%, 0%, 21.6%)
CIE-LABlab(36.58, 53.59, -69.16)
CIE-LCHlch(36.58, 87.49, 307.78°)
OKLaboklab(47.72% 0.0721 -0.1987)
OKLCHoklch(47.72% 0.211 289.9)
XYZxyz(16.7324, 9.3123, 55.5482)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235C8 #9BC835
analogous
#3552C8 #6235C8 #AB35C8
triadic
#6235C8 #C86235 #35C862
tetradic
#6235C8 #C83552 #9BC835 #35C8AB
square
#6235C8 #C83552 #9BC835 #35C8AB
split-complementary
#6235C8 #C8AB35 #52C835
monochromatic
#331B67 #4A2898 #6235C8 #8764D6 #AD95E3

Accessibility & contrast

On white

7.34
#6235C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6235C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6235C8
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235C8#FFFFFF#000000##FFFFFF
##6235C81.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#3D5D7C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6235c8;
/* rgb */ color: rgb(98, 53, 200);
/* oklch */ color: oklch(47.7% 0.211 289.9);
Tailwind
colors: {
  custom: {
    50: '#9871da',
    500: '#6235c8',
    950: '#000000',
  },
}
SCSS
$custom: #6235c8;
$custom-light: #9871da;
$custom-dark: #000000;
JSON
{
  "hex": "#6235c8",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 200
  },
  "hsl": {
    "h": 258.367,
    "s": 58.103,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47716,
    "c": 0.21133,
    "h": 289.9
  },
  "luminance": 0.09313
}

Semantic roles & 50–950 ramp

primary
#6235C8
secondary
#B9CE8B
accent
#E146B2
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6235C8

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

Preview Lab → · Contrast checker → · Palette generator →

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