#6235AA#6235AA

#6235AA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.177 H 296.2°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#6235AA
RGBrgb(98, 53, 170)
HSLhsl(263, 52%, 44%)
HSVhsv(263, 69%, 67%)
CMYKcmyk(42.4%, 68.8%, 0%, 33.3%)
CIE-LABlab(34.08, 45.44, -55.53)
CIE-LCHlch(34.08, 71.75, 309.30°)
OKLaboklab(45.16% 0.0781 -0.1587)
OKLCHoklch(45.16% 0.177 296.2)
XYZxyz(13.5639, 8.0449, 38.8606)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235AA #7DAA35
analogous
#3542AA #6235AA #9C35AA
triadic
#6235AA #AA6235 #35AA62
tetradic
#6235AA #AA3542 #7DAA35 #35AA9C
square
#6235AA #AA3542 #7DAA35 #35AA9C
split-complementary
#6235AA #AA9C35 #42AA35
monochromatic
#2C184D #47267B #6235AA #8053C9 #A382D8

Accessibility & contrast

On white

8.05
#6235AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6235AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6235AA#FFFFFF#000000##FFFFFF
##6235AA1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#4F516B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6235aa;
/* rgb */ color: rgb(98, 53, 170);
/* oklch */ color: oklch(45.2% 0.177 296.2);
Tailwind
colors: {
  custom: {
    50: '#9570c4',
    500: '#6235aa',
    950: '#000000',
  },
}
SCSS
$custom: #6235aa;
$custom-light: #9570c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6235aa",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 170
  },
  "hsl": {
    "h": 263.077,
    "s": 52.466,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45164,
    "c": 0.17681,
    "h": 296.2
  },
  "luminance": 0.08045
}

Semantic roles & 50–950 ramp

primary
#6235AA
secondary
#A6C17A
accent
#DC4CA5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6235AA

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

Preview Lab → · Contrast checker → · Palette generator →

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