#28510F#28510F

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

Color values

HEX#28510F
RGBrgb(40, 81, 15)
HSLhsl(97, 69%, 19%)
HSVhsv(97, 81%, 32%)
CMYKcmyk(50.6%, 0%, 81.5%, 68.2%)
CIE-LABlab(30.33, -27.18, 32.19)
CIE-LCHlch(30.33, 42.13, 130.18°)
OKLaboklab(39.03% -0.0756 0.0722)
OKLCHoklch(39.03% 0.105 136.3)
XYZxyz(3.9036, 6.3702, 1.4757)
Luminance0.0637 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28510F #380F51
analogous
#49510F #28510F #0F5117
triadic
#28510F #0F2851 #510F28
tetradic
#28510F #0F4951 #380F51 #51170F
square
#28510F #0F4951 #380F51 #51170F
split-complementary
#28510F #170F51 #510F49
monochromatic
#0D1A05 #0F1D05 #28510F #428519 #5BB822

Accessibility & contrast

On white

9.23
#28510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28510F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28510F#FFFFFF#000000##FFFFFF
##28510F1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A03
Deuteranopia (green-blind)
#4F4616
Tritanopia (blue-blind)
#264E44
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #28510f;
/* rgb */ color: rgb(40, 81, 15);
/* oklch */ color: oklch(39.0% 0.105 136.3);
Tailwind
colors: {
  custom: {
    50: '#678253',
    500: '#28510f',
    950: '#000000',
  },
}
SCSS
$custom: #28510f;
$custom-light: #678253;
$custom-dark: #000000;
JSON
{
  "hex": "#28510f",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 97.273,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39032,
    "c": 0.10452,
    "h": 136.3
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#28510F
secondary
#69318B
accent
#3CECA9
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060A02
muted
#7A7C78

Preview Lab

Preview with #28510F

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

Preview Lab → · Contrast checker → · Palette generator →

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