#2F510F#2F510F

#2F510F is a dark, moderate yellow-green. Relative luminance 0.065; OKLCH L 39.4% C 0.100 H 133.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F510F
RGBrgb(47, 81, 15)
HSLhsl(91, 69%, 19%)
HSVhsv(91, 81%, 32%)
CMYKcmyk(42%, 0%, 81.5%, 68.2%)
CIE-LABlab(30.70, -24.50, 32.68)
CIE-LCHlch(30.70, 40.84, 126.86°)
OKLaboklab(39.43% -0.0689 0.073)
OKLCHoklch(39.43% 0.1 133.3)
XYZxyz(4.2009, 6.5235, 1.4897)
Luminance0.0652 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F510F #310F51
analogous
#50510F #2F510F #0F5110
triadic
#2F510F #0F2F51 #510F2F
tetradic
#2F510F #0F5051 #310F51 #51100F
square
#2F510F #0F5051 #310F51 #51100F
split-complementary
#2F510F #100F51 #510F50
monochromatic
#0F1A05 #111D05 #2F510F #4D8519 #6BB822

Accessibility & contrast

On white

9.11
#2F510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F510F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F510F#FFFFFF#000000##FFFFFF
##2F510F1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A03
Deuteranopia (green-blind)
#504716
Tritanopia (blue-blind)
#2F4D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f510f;
/* rgb */ color: rgb(47, 81, 15);
/* oklch */ color: oklch(39.4% 0.100 133.3);
Tailwind
colors: {
  custom: {
    50: '#6b8253',
    500: '#2f510f',
    950: '#000000',
  },
}
SCSS
$custom: #2f510f;
$custom-light: #6b8253;
$custom-dark: #000000;
JSON
{
  "hex": "#2f510f",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 90.909,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.39434,
    "c": 0.1004,
    "h": 133.3
  },
  "luminance": 0.06524
}

Semantic roles & 50–950 ramp

primary
#2F510F
secondary
#5F318B
accent
#3CEC97
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F510F

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

Preview Lab → · Contrast checker → · Palette generator →

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