#28510C#28510C

#28510C is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.0% C 0.106 H 135.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#28510C
RGBrgb(40, 81, 12)
HSLhsl(96, 74%, 18%)
HSVhsv(96, 85%, 32%)
CMYKcmyk(50.6%, 0%, 85.2%, 68.2%)
CIE-LABlab(30.31, -27.39, 33.31)
CIE-LCHlch(30.31, 43.13, 129.43°)
OKLaboklab(39.01% -0.0764 0.074)
OKLCHoklch(39.01% 0.106 135.9)
XYZxyz(3.8838, 6.3623, 1.3711)
Luminance0.0636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28510C #350C51
analogous
#4A510C #28510C #0C5112
triadic
#28510C #0C2851 #510C28
tetradic
#28510C #0C4A51 #350C51 #51120C
square
#28510C #0C4A51 #350C51 #51120C
split-complementary
#28510C #120C51 #510C4A
monochromatic
#0D1B04 #0E1C04 #28510C #428614 #5DBC1C

Accessibility & contrast

On white

9.24
#28510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#28510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28510C
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28510C#FFFFFF#000000##FFFFFF
##28510C1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544900
Deuteranopia (green-blind)
#4F4614
Tritanopia (blue-blind)
#264E44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #28510c;
/* rgb */ color: rgb(40, 81, 12);
/* oklch */ color: oklch(39.0% 0.106 135.9);
Tailwind
colors: {
  custom: {
    50: '#678251',
    500: '#28510c',
    950: '#000000',
  },
}
SCSS
$custom: #28510c;
$custom-light: #678251;
$custom-dark: #000000;
JSON
{
  "hex": "#28510c",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 95.652,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.3901,
    "c": 0.10636,
    "h": 135.9
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#28510C
secondary
#652C8C
accent
#37F1A5
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #28510C

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

Preview Lab → · Contrast checker → · Palette generator →

#28510C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva