#285111#285111

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

Color values

HEX#285111
RGBrgb(40, 81, 17)
HSLhsl(98, 65%, 19%)
HSVhsv(98, 79%, 32%)
CMYKcmyk(50.6%, 0%, 79%, 68.2%)
CIE-LABlab(30.34, -27.02, 31.38)
CIE-LCHlch(30.34, 41.41, 130.73°)
OKLaboklab(39.05% -0.075 0.0708)
OKLCHoklch(39.05% 0.103 136.7)
XYZxyz(3.9186, 6.3762, 1.5545)
Luminance0.0638 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#285111 #3A1151
analogous
#485111 #285111 #11511A
triadic
#285111 #112851 #511128
tetradic
#285111 #114851 #3A1151 #511A11
square
#285111 #114851 #3A1151 #511A11
split-complementary
#285111 #1A1151 #511148
monochromatic
#0C1905 #0F1E06 #285111 #41841C #5AB626

Accessibility & contrast

On white

9.23
#285111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#285111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##285111#FFFFFF#000000##FFFFFF
##2851111.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A06
Deuteranopia (green-blind)
#4F4617
Tritanopia (blue-blind)
#264E45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #285111;
/* rgb */ color: rgb(40, 81, 17);
/* oklch */ color: oklch(39.0% 0.103 136.7);
Tailwind
colors: {
  custom: {
    50: '#668254',
    500: '#285111',
    950: '#000000',
  },
}
SCSS
$custom: #285111;
$custom-light: #668254;
$custom-dark: #000000;
JSON
{
  "hex": "#285111",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 98.438,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39048,
    "c": 0.10317,
    "h": 136.7
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#285111
secondary
#6B348A
accent
#40E8AC
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#060A03
muted
#7A7C78

Preview Lab

Preview with #285111

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

Preview Lab → · Contrast checker → · Palette generator →

#285111 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva