#6235DF#6235DF

#6235DF is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.8% C 0.237 H 286.2°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#6235DF
RGBrgb(98, 53, 223)
HSLhsl(256, 73%, 54%)
HSVhsv(256, 76%, 87%)
CMYKcmyk(56.1%, 76.2%, 0%, 12.5%)
CIE-LABlab(38.67, 59.87, -78.99)
CIE-LCHlch(38.67, 99.12, 307.16°)
OKLaboklab(49.82% 0.0662 -0.2275)
OKLCHoklch(49.82% 0.237 286.2)
XYZxyz(19.6254, 10.4695, 70.7844)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235DF #B2DF35
analogous
#355DDF #6235DF #B735DF
triadic
#6235DF #DF6235 #35DF62
tetradic
#6235DF #DF355D #B2DF35 #35DFB7
square
#6235DF #DF355D #B2DF35 #35DFB7
split-complementary
#6235DF #DFB735 #5DDF35
monochromatic
#331585 #471DB9 #6235DF #8B6AE7 #B49FF0

Accessibility & contrast

On white

6.79
#6235DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6235DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6235DF
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6235DF#FFFFFF#000000##FFFFFF
##6235DF1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE4
Deuteranopia (green-blind)
#0056DC
Tritanopia (blue-blind)
#256689
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6235df;
/* rgb */ color: rgb(98, 53, 223);
/* oklch */ color: oklch(49.8% 0.237 286.2);
Tailwind
colors: {
  custom: {
    50: '#9c72ea',
    500: '#6235df',
    950: '#000000',
  },
}
SCSS
$custom: #6235df;
$custom-light: #9c72ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6235df",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 223
  },
  "hsl": {
    "h": 255.882,
    "s": 72.65,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49821,
    "c": 0.23688,
    "h": 286.2
  },
  "luminance": 0.10471
}

Semantic roles & 50–950 ramp

primary
#6235DF
secondary
#C9DC94
accent
#EF38BF
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #6235DF

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

Preview Lab → · Contrast checker → · Palette generator →

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