#6256CA#6256CA

#6256CA is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.8% C 0.174 H 283.4°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#6256CA
RGBrgb(98, 86, 202)
HSLhsl(246, 52%, 56%)
HSVhsv(246, 57%, 79%)
CMYKcmyk(51.5%, 57.4%, 0%, 20.8%)
CIE-LABlab(43.53, 35.87, -58.99)
CIE-LCHlch(43.53, 69.05, 301.30°)
OKLaboklab(52.79% 0.0402 -0.1688)
OKLCHoklch(52.79% 0.174 283.4)
XYZxyz(19.0222, 13.5155, 57.4721)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6256CA #BECA56
analogous
#5684CA #6256CA #9C56CA
triadic
#6256CA #CA6256 #56CA62
tetradic
#6256CA #CA5684 #BECA56 #56CA9C
square
#6256CA #CA5684 #BECA56 #56CA9C
split-complementary
#6256CA #CA9C56 #84CA56
monochromatic
#30287E #4236AD #6256CA #8D85D9 #B9B3E7

Accessibility & contrast

On white

5.67
#6256CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#6256CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6256CA
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6256CA#FFFFFF#000000##FFFFFF
##6256CA1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#397188
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6256ca;
/* rgb */ color: rgb(98, 86, 202);
/* oklch */ color: oklch(52.8% 0.174 283.4);
Tailwind
colors: {
  custom: {
    50: '#9786db',
    500: '#6256ca',
    950: '#000000',
  },
}
SCSS
$custom: #6256ca;
$custom-light: #9786db;
$custom-dark: #000000;
JSON
{
  "hex": "#6256ca",
  "rgb": {
    "r": 98,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 246.207,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52791,
    "c": 0.17354,
    "h": 283.4
  },
  "luminance": 0.13517
}

Semantic roles & 50–950 ramp

primary
#6256CA
secondary
#D1D6A6
accent
#DC4CCD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6256CA

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

Preview Lab → · Contrast checker → · Palette generator →

#6256CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva