#6235AB#6235AB

#6235AB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.178 H 296.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#6235AB
RGBrgb(98, 53, 171)
HSLhsl(263, 53%, 44%)
HSVhsv(263, 69%, 67%)
CMYKcmyk(42.7%, 69%, 0%, 32.9%)
CIE-LABlab(34.15, 45.71, -56.00)
CIE-LCHlch(34.15, 72.29, 309.22°)
OKLaboklab(45.25% 0.0779 -0.16)
OKLCHoklch(45.25% 0.178 296)
XYZxyz(13.6589, 8.0829, 39.3607)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235AB #7EAB35
analogous
#3543AB #6235AB #9D35AB
triadic
#6235AB #AB6235 #35AB62
tetradic
#6235AB #AB3543 #7EAB35 #35AB9D
square
#6235AB #AB3543 #7EAB35 #35AB9D
split-complementary
#6235AB #AB9D35 #43AB35
monochromatic
#2C184E #47277C #6235AB #8153CA #A382D8

Accessibility & contrast

On white

8.03
#6235AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##6235AB#FFFFFF#000000##FFFFFF
##6235AB1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#4F526C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6235ab;
/* rgb */ color: rgb(98, 53, 171);
/* oklch */ color: oklch(45.2% 0.178 296.0);
Tailwind
colors: {
  custom: {
    50: '#9570c5',
    500: '#6235ab',
    950: '#000000',
  },
}
SCSS
$custom: #6235ab;
$custom-light: #9570c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6235ab",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 262.881,
    "s": 52.679,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45245,
    "c": 0.17799,
    "h": 296
  },
  "luminance": 0.08083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6235AB

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

Preview Lab → · Contrast checker → · Palette generator →

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