#2F5814#2F5814

#2F5814 is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.5% C 0.107 H 135.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#2F5814
RGBrgb(47, 88, 20)
HSLhsl(96, 63%, 21%)
HSVhsv(96, 77%, 35%)
CMYKcmyk(46.6%, 0%, 77.3%, 65.5%)
CIE-LABlab(33.21, -27.44, 33.12)
CIE-LCHlch(33.21, 43.01, 129.64°)
OKLaboklab(41.5% -0.0765 0.0748)
OKLCHoklch(41.5% 0.107 135.6)
XYZxyz(4.7882, 7.6340, 1.8829)
Luminance0.0763 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5814 #3D1458
analogous
#515814 #2F5814 #14581B
triadic
#2F5814 #142F58 #58142F
tetradic
#2F5814 #145158 #3D1458 #581B14
square
#2F5814 #145158 #3D1458 #581B14
split-complementary
#2F5814 #1B1458 #581451
monochromatic
#0D1906 #142609 #2F5814 #4A8A1F #64BC2B

Accessibility & contrast

On white

8.31
#2F5814 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F5814 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5814
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5814#FFFFFF#000000##FFFFFF
##2F58141.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5008
Deuteranopia (green-blind)
#564D1A
Tritanopia (blue-blind)
#2E544B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f5814;
/* rgb */ color: rgb(47, 88, 20);
/* oklch */ color: oklch(41.5% 0.107 135.6);
Tailwind
colors: {
  custom: {
    50: '#6c8756',
    500: '#2f5814',
    950: '#000000',
  },
}
SCSS
$custom: #2f5814;
$custom-light: #6c8756;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5814",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 20
  },
  "hsl": {
    "h": 96.176,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.41503,
    "c": 0.10697,
    "h": 135.6
  },
  "luminance": 0.07634
}

Semantic roles & 50–950 ramp

primary
#2F5814
secondary
#6D3890
accent
#42E6A5
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5814

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

Preview Lab → · Contrast checker → · Palette generator →

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