#2F4C12#2F4C12

#2F4C12 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.0% C 0.091 H 132.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#2F4C12
RGBrgb(47, 76, 18)
HSLhsl(90, 62%, 18%)
HSVhsv(90, 76%, 30%)
CMYKcmyk(38.2%, 0%, 76.3%, 70.2%)
CIE-LABlab(28.95, -21.78, 29.64)
CIE-LCHlch(28.95, 36.78, 126.30°)
OKLaboklab(38.01% -0.0612 0.0672)
OKLCHoklch(38.01% 0.091 132.4)
XYZxyz(3.8659, 5.8167, 1.4912)
Luminance0.0582 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4C12 #2F124C
analogous
#4C4C12 #2F4C12 #124C12
triadic
#2F4C12 #122F4C #4C122F
tetradic
#2F4C12 #124C4C #2F124C #4C1212
square
#2F4C12 #124C4C #2F124C #4C1212
split-complementary
#2F4C12 #12124C #4C124C
monochromatic
#0F1906 #101B06 #2F4C12 #4E7D1E #6CAF29

Accessibility & contrast

On white

9.71
#2F4C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2F4C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4C12
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4C12#FFFFFF#000000##FFFFFF
##2F4C121.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4609
Deuteranopia (green-blind)
#4B4317
Tritanopia (blue-blind)
#304940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f4c12;
/* rgb */ color: rgb(47, 76, 18);
/* oklch */ color: oklch(38.0% 0.091 132.4);
Tailwind
colors: {
  custom: {
    50: '#6a7e54',
    500: '#2f4c12',
    950: '#000000',
  },
}
SCSS
$custom: #2f4c12;
$custom-light: #6a7e54;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4c12",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38011,
    "c": 0.09092,
    "h": 132.4
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

primary
#2F4C12
secondary
#5D3585
accent
#43E594
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #2F4C12

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

Preview Lab → · Contrast checker → · Palette generator →

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