#0A0802#0A0802

#0A0802 is a very dark, near-neutral yellow. Relative luminance 0.002; OKLCH L 13.4% C 0.019 H 97.1°. Best body text is #FFFFFF at 20.03:1 contrast (WCAG AA passes).

Color values

HEX#0A0802
RGBrgb(10, 8, 2)
HSLhsl(45, 67%, 2%)
HSVhsv(45, 80%, 4%)
CMYKcmyk(0%, 20%, 80%, 96.1%)
CIE-LABlab(2.19, -0.31, 2.46)
CIE-LCHlch(2.19, 2.47, 97.21°)
OKLaboklab(13.41% -0.0023 0.0188)
OKLCHoklch(13.41% 0.019 97.1)
XYZxyz(0.2230, 0.2426, 0.0925)
Luminance0.0024 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A0802 #02040A
analogous
#0A0402 #0A0802 #080A02
triadic
#0A0802 #020A08 #08020A
tetradic
#0A0802 #020A04 #02040A #0A0208
square
#0A0802 #020A04 #02040A #0A0208
split-complementary
#0A0802 #02080A #04020A
monochromatic
#1A1405 #1A1405 #1A1405 #3D310C #705A16

Accessibility & contrast

On white

20.03
#0A0802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0A0802 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A0802
20.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A0802#FFFFFF#000000##FFFFFF
##0A08021.0020.031.0520.03
#FFFFFF20.031.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A0802
Deuteranopia (green-blind)
#0A0802
Tritanopia (blue-blind)
#0C0706
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0a0802;
/* rgb */ color: rgb(10, 8, 2);
/* oklch */ color: oklch(13.4% 0.019 97.1);
Tailwind
colors: {
  custom: {
    50: '#4b4a48',
    500: '#0a0802',
    950: '#000000',
  },
}
SCSS
$custom: #0a0802;
$custom-light: #4b4a48;
$custom-dark: #000000;
JSON
{
  "hex": "#0a0802",
  "rgb": {
    "r": 10,
    "g": 8,
    "b": 2
  },
  "hsl": {
    "h": 45,
    "s": 66.667,
    "l": 2.353
  },
  "oklch": {
    "l": 0.13411,
    "c": 0.0189,
    "h": 97.1
  },
  "luminance": 0.00243
}

Semantic roles & 50–950 ramp

primary
#0A0802
secondary
#1C284C
accent
#69EA3E
background
#F4F4F4
surface
#E7E7E6
border
#C3C3C2
text
#010100
muted
#777777

Preview Lab

Preview with #0A0802

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

Preview Lab → · Contrast checker → · Palette generator →

#0A0802 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva