#2F5D16#2F5D16

#2F5D16 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.113 H 136.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2F5D16
RGBrgb(47, 93, 22)
HSLhsl(99, 62%, 23%)
HSVhsv(99, 76%, 36%)
CMYKcmyk(49.5%, 0%, 76.3%, 63.5%)
CIE-LABlab(34.98, -29.57, 34.08)
CIE-LCHlch(34.98, 45.12, 130.94°)
OKLaboklab(42.96% -0.082 0.0771)
OKLCHoklch(42.96% 0.113 136.8)
XYZxyz(5.2313, 8.4906, 2.1221)
Luminance0.0849 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5D16 #44165D
analogous
#535D16 #2F5D16 #165D20
triadic
#2F5D16 #162F5D #5D162F
tetradic
#2F5D16 #16535D #44165D #5D2016
square
#2F5D16 #16535D #44165D #5D2016
split-complementary
#2F5D16 #20165D #5D1653
monochromatic
#0D1906 #162C0A #2F5D16 #488E22 #61C02D

Accessibility & contrast

On white

7.78
#2F5D16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F5D16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5D16
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5D16#FFFFFF#000000##FFFFFF
##2F5D161.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60550A
Deuteranopia (green-blind)
#5A511D
Tritanopia (blue-blind)
#2D594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5d16;
/* rgb */ color: rgb(47, 93, 22);
/* oklch */ color: oklch(43.0% 0.113 136.8);
Tailwind
colors: {
  custom: {
    50: '#6c8b58',
    500: '#2f5d16',
    950: '#000000',
  },
}
SCSS
$custom: #2f5d16;
$custom-light: #6c8b58;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5d16",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 22
  },
  "hsl": {
    "h": 98.873,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42964,
    "c": 0.1126,
    "h": 136.8
  },
  "luminance": 0.08491
}

Semantic roles & 50–950 ramp

primary
#2F5D16
secondary
#753B94
accent
#43E5AC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5D16

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

Preview Lab → · Contrast checker → · Palette generator →

#2F5D16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva