#6235AC#6235AC

#6235AC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.179 H 295.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#6235AC
RGBrgb(98, 53, 172)
HSLhsl(263, 53%, 44%)
HSVhsv(263, 69%, 67%)
CMYKcmyk(43%, 69.2%, 0%, 32.5%)
CIE-LABlab(34.23, 45.98, -56.47)
CIE-LCHlch(34.23, 72.82, 309.16°)
OKLaboklab(45.33% 0.0778 -0.1614)
OKLCHoklch(45.33% 0.179 295.7)
XYZxyz(13.7545, 8.1211, 39.8646)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235AC #7FAC35
analogous
#3544AC #6235AC #9E35AC
triadic
#6235AC #AC6235 #35AC62
tetradic
#6235AC #AC3544 #7FAC35 #35AC9E
square
#6235AC #AC3544 #7FAC35 #35AC9E
split-complementary
#6235AC #AC9E35 #44AC35
monochromatic
#2D184E #47277D #6235AC #8154CA #A383D9

Accessibility & contrast

On white

8.00
#6235AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6235AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6235AC#FFFFFF#000000##FFFFFF
##6235AC1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#4E526C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6235ac;
/* rgb */ color: rgb(98, 53, 172);
/* oklch */ color: oklch(45.3% 0.179 295.7);
Tailwind
colors: {
  custom: {
    50: '#9570c6',
    500: '#6235ac',
    950: '#000000',
  },
}
SCSS
$custom: #6235ac;
$custom-light: #9570c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6235ac",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 172
  },
  "hsl": {
    "h": 262.689,
    "s": 52.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45326,
    "c": 0.17916,
    "h": 295.7
  },
  "luminance": 0.08121
}

Semantic roles & 50–950 ramp

primary
#6235AC
secondary
#A7C27B
accent
#DC4CA6
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6235AC

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

Preview Lab → · Contrast checker → · Palette generator →

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