#283A04#283A04

#283A04 is a dark, moderate yellow-green. Relative luminance 0.035; OKLCH L 32.1% C 0.079 H 127.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#283A04
RGBrgb(40, 58, 4)
HSLhsl(80, 87%, 12%)
HSVhsv(80, 93%, 23%)
CMYKcmyk(31%, 0%, 93.1%, 77.3%)
CIE-LABlab(21.89, -16.44, 28.30)
CIE-LCHlch(21.89, 32.73, 120.16°)
OKLaboklab(32.11% -0.0476 0.0629)
OKLCHoklch(32.11% 0.079 127.1)
XYZxyz(2.4101, 3.4859, 0.6607)
Luminance0.0349 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#283A04 #16043A
analogous
#3A3104 #283A04 #0D3A04
triadic
#283A04 #04283A #3A0428
tetradic
#283A04 #043A31 #16043A #3A040D
square
#283A04 #043A31 #16043A #3A040D
split-complementary
#283A04 #040D3A #31043A
monochromatic
#141D02 #141D02 #283A04 #4F7308 #77AD0C

Accessibility & contrast

On white

12.37
#283A04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#283A04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #283A04
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##283A04#FFFFFF#000000##FFFFFF
##283A041.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3500
Deuteranopia (green-blind)
#3B3409
Tritanopia (blue-blind)
#2A3730
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #283a04;
/* rgb */ color: rgb(40, 58, 4);
/* oklch */ color: oklch(32.1% 0.079 127.1);
Tailwind
colors: {
  custom: {
    50: '#64704a',
    500: '#283a04',
    950: '#000000',
  },
}
SCSS
$custom: #283a04;
$custom-light: #64704a;
$custom-dark: #000000;
JSON
{
  "hex": "#283a04",
  "rgb": {
    "r": 40,
    "g": 58,
    "b": 4
  },
  "hsl": {
    "h": 80,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.32112,
    "c": 0.07887,
    "h": 127.1
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#283A04
secondary
#3D1E7C
accent
#2BFD71
background
#F6F6F4
surface
#EBECE7
border
#C6C7C3
text
#060701
muted
#7A7A77

Preview Lab

Preview with #283A04

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

Preview Lab → · Contrast checker → · Palette generator →

#283A04 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva