#2F5818#2F5818

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

Color values

HEX#2F5818
RGBrgb(47, 88, 24)
HSLhsl(98, 57%, 22%)
HSVhsv(98, 73%, 35%)
CMYKcmyk(46.6%, 0%, 72.7%, 65.5%)
CIE-LABlab(33.24, -27.09, 31.38)
CIE-LCHlch(33.24, 41.46, 130.80°)
OKLaboklab(41.54% -0.0752 0.0718)
OKLCHoklch(41.54% 0.104 136.3)
XYZxyz(4.8268, 7.6495, 2.0861)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5818 #411858
analogous
#4F5818 #2F5818 #185821
triadic
#2F5818 #182F58 #58182F
tetradic
#2F5818 #184F58 #411858 #582118
square
#2F5818 #184F58 #411858 #582118
split-complementary
#2F5818 #211858 #58184F
monochromatic
#0D1807 #15280B #2F5818 #498825 #62B832

Accessibility & contrast

On white

8.30
#2F5818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5818
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5818#FFFFFF#000000##FFFFFF
##2F58181.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500F
Deuteranopia (green-blind)
#564D1E
Tritanopia (blue-blind)
#2D554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f5818;
/* rgb */ color: rgb(47, 88, 24);
/* oklch */ color: oklch(41.5% 0.104 136.3);
Tailwind
colors: {
  custom: {
    50: '#6c8759',
    500: '#2f5818',
    950: '#000000',
  },
}
SCSS
$custom: #2f5818;
$custom-light: #6c8759;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5818",
  "rgb": {
    "r": 47,
    "g": 88,
    "b": 24
  },
  "hsl": {
    "h": 98.438,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.4154,
    "c": 0.10394,
    "h": 136.3
  },
  "luminance": 0.0765
}

Semantic roles & 50–950 ramp

primary
#2F5818
secondary
#713D8F
accent
#47E0A9
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #2F5818

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

Preview Lab → · Contrast checker → · Palette generator →

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