#282C02#282C02

#282C02 is a dark, moderate yellow. Relative luminance 0.023; OKLCH L 28.0% C 0.061 H 115.1°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#282C02
RGBrgb(40, 44, 2)
HSLhsl(66, 91%, 9%)
HSVhsv(66, 95%, 17%)
CMYKcmyk(9.1%, 0%, 95.5%, 82.7%)
CIE-LABlab(16.78, -8.35, 23.23)
CIE-LCHlch(16.78, 24.68, 109.78°)
OKLaboklab(27.98% -0.0259 0.0553)
OKLCHoklch(27.98% 0.061 115.1)
XYZxyz(1.7868, 2.2569, 0.3989)
Luminance0.0226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#282C02 #06022C
analogous
#2C1B02 #282C02 #132C02
triadic
#282C02 #02282C #2C0228
tetradic
#282C02 #022C1B #06022C #2C0213
square
#282C02 #022C1B #06022C #2C0213
split-complementary
#282C02 #02132C #1B022C
monochromatic
#1B1D01 #1B1D01 #282C02 #5D6705 #92A107

Accessibility & contrast

On white

14.47
#282C02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#282C02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #282C02
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##282C02#FFFFFF#000000##FFFFFF
##282C021.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#302A05
Tritanopia (blue-blind)
#2B2924
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #282c02;
/* rgb */ color: rgb(40, 44, 2);
/* oklch */ color: oklch(28.0% 0.061 115.1);
Tailwind
colors: {
  custom: {
    50: '#636548',
    500: '#282c02',
    950: '#000000',
  },
}
SCSS
$custom: #282c02;
$custom-light: #636548;
$custom-dark: #000000;
JSON
{
  "hex": "#282c02",
  "rgb": {
    "r": 40,
    "g": 44,
    "b": 2
  },
  "hsl": {
    "h": 65.714,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.27975,
    "c": 0.06103,
    "h": 115.1
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#282C02
secondary
#211971
accent
#29FF3D
background
#F6F6F4
surface
#EBEBE6
border
#C6C6C2
text
#050500
muted
#7A7A77

Preview Lab

Preview with #282C02

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

Preview Lab → · Contrast checker → · Palette generator →

#282C02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva