#6235AF#6235AF

#6235AF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.183 H 295.0°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#6235AF
RGBrgb(98, 53, 175)
HSLhsl(262, 54%, 45%)
HSVhsv(262, 70%, 69%)
CMYKcmyk(44%, 69.7%, 0%, 31.4%)
CIE-LABlab(34.47, 46.79, -57.87)
CIE-LCHlch(34.47, 74.42, 308.96°)
OKLaboklab(45.57% 0.0772 -0.1655)
OKLCHoklch(45.57% 0.183 295)
XYZxyz(14.0459, 8.2377, 41.3991)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6235AF #82AF35
analogous
#3545AF #6235AF #9F35AF
triadic
#6235AF #AF6235 #35AF62
tetradic
#6235AF #AF3545 #82AF35 #35AF9F
square
#6235AF #AF3545 #82AF35 #35AF9F
split-complementary
#6235AF #AF9F35 #45AF35
monochromatic
#2D1951 #482780 #6235AF #8156CC #A485DA

Accessibility & contrast

On white

7.93
#6235AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6235AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6235AF#FFFFFF#000000##FFFFFF
##6235AF1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#4D536E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6235af;
/* rgb */ color: rgb(98, 53, 175);
/* oklch */ color: oklch(45.6% 0.183 295.0);
Tailwind
colors: {
  custom: {
    50: '#9570c8',
    500: '#6235af',
    950: '#000000',
  },
}
SCSS
$custom: #6235af;
$custom-light: #9570c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6235af",
  "rgb": {
    "r": 98,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 262.131,
    "s": 53.509,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45572,
    "c": 0.18266,
    "h": 295
  },
  "luminance": 0.08238
}

Semantic roles & 50–950 ramp

primary
#6235AF
secondary
#A9C47C
accent
#DD4BA7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6235AF

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

Preview Lab → · Contrast checker → · Palette generator →

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