#2F5D14#2F5D14

#2F5D14 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 42.9% C 0.114 H 136.5°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2F5D14
RGBrgb(47, 93, 20)
HSLhsl(98, 65%, 22%)
HSVhsv(98, 78%, 36%)
CMYKcmyk(49.5%, 0%, 78.5%, 63.5%)
CIE-LABlab(34.97, -29.73, 34.89)
CIE-LCHlch(34.97, 45.84, 130.43°)
OKLaboklab(42.95% -0.0826 0.0785)
OKLCHoklch(42.95% 0.114 136.5)
XYZxyz(5.2128, 8.4832, 2.0244)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5D14 #42145D
analogous
#545D14 #2F5D14 #145D1D
triadic
#2F5D14 #142F5D #5D142F
tetradic
#2F5D14 #14545D #42145D #5D1D14
square
#2F5D14 #14545D #42145D #5D1D14
split-complementary
#2F5D14 #1D145D #5D1454
monochromatic
#0D1905 #162B09 #2F5D14 #488F1F #62C22A

Accessibility & contrast

On white

7.79
#2F5D14 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5D14
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5D14#FFFFFF#000000##FFFFFF
##2F5D141.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605507
Deuteranopia (green-blind)
#5A511B
Tritanopia (blue-blind)
#2D594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f5d14;
/* rgb */ color: rgb(47, 93, 20);
/* oklch */ color: oklch(42.9% 0.114 136.5);
Tailwind
colors: {
  custom: {
    50: '#6d8b57',
    500: '#2f5d14',
    950: '#000000',
  },
}
SCSS
$custom: #2f5d14;
$custom-light: #6d8b57;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5d14",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 20
  },
  "hsl": {
    "h": 97.808,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.42947,
    "c": 0.11398,
    "h": 136.5
  },
  "luminance": 0.08484
}

Semantic roles & 50–950 ramp

primary
#2F5D14
secondary
#723895
accent
#40E8AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #2F5D14

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

Preview Lab → · Contrast checker → · Palette generator →

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