#2F6312#2F6312

#2F6312 is a dark, vivid yellow-green. Relative luminance 0.096; OKLCH L 44.7% C 0.123 H 137.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2F6312
RGBrgb(47, 99, 18)
HSLhsl(99, 69%, 23%)
HSVhsv(99, 82%, 39%)
CMYKcmyk(52.5%, 0%, 81.8%, 61.2%)
CIE-LABlab(37.06, -32.51, 37.71)
CIE-LCHlch(37.06, 49.79, 130.77°)
OKLaboklab(44.66% -0.0903 0.0841)
OKLCHoklch(44.66% 0.123 137)
XYZxyz(5.7431, 9.5713, 2.1170)
Luminance0.0957 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6312 #461263
analogous
#576312 #2F6312 #12631E
triadic
#2F6312 #122F63 #63122F
tetradic
#2F6312 #125763 #461263 #631E12
square
#2F6312 #125763 #461263 #631E12
split-complementary
#2F6312 #1E1263 #631257
monochromatic
#0C1A05 #162F09 #2F6312 #48971B #60CB25

Accessibility & contrast

On white

7.21
#2F6312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F6312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F6312
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6312#FFFFFF#000000##FFFFFF
##2F63121.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A01
Deuteranopia (green-blind)
#60561B
Tritanopia (blue-blind)
#2C5F54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f6312;
/* rgb */ color: rgb(47, 99, 18);
/* oklch */ color: oklch(44.7% 0.123 137.0);
Tailwind
colors: {
  custom: {
    50: '#6e9057',
    500: '#2f6312',
    950: '#000000',
  },
}
SCSS
$custom: #2f6312;
$custom-light: #6e9057;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6312",
  "rgb": {
    "r": 47,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 98.519,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.44663,
    "c": 0.12335,
    "h": 137
  },
  "luminance": 0.09572
}

Semantic roles & 50–950 ramp

primary
#2F6312
secondary
#77369B
accent
#3CECAD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#080C03
muted
#7B7D78

Preview Lab

Preview with #2F6312

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

Preview Lab → · Contrast checker → · Palette generator →

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