#2F6612#2F6612

#2F6612 is a mid, vivid yellow-green. Relative luminance 0.102; OKLCH L 45.5% C 0.127 H 137.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2F6612
RGBrgb(47, 102, 18)
HSLhsl(99, 70%, 24%)
HSVhsv(99, 82%, 40%)
CMYKcmyk(53.9%, 0%, 82.4%, 60%)
CIE-LABlab(38.11, -33.79, 38.71)
CIE-LCHlch(38.11, 51.38, 131.12°)
OKLaboklab(45.53% -0.0937 0.0862)
OKLCHoklch(45.53% 0.127 137.4)
XYZxyz(6.0326, 10.1503, 2.2135)
Luminance0.1015 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6612 #491266
analogous
#596612 #2F6612 #12661F
triadic
#2F6612 #122F66 #66122F
tetradic
#2F6612 #125966 #491266 #661F12
square
#2F6612 #125966 #491266 #661F12
split-complementary
#2F6612 #1F1266 #661259
monochromatic
#0C1A05 #173209 #2F6612 #479A1B #5FCE24

Accessibility & contrast

On white

6.93
#2F6612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2F6612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6612
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6612#FFFFFF#000000##FFFFFF
##2F66121.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#62581B
Tritanopia (blue-blind)
#2B6256
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f6612;
/* rgb */ color: rgb(47, 102, 18);
/* oklch */ color: oklch(45.5% 0.127 137.4);
Tailwind
colors: {
  custom: {
    50: '#6e9257',
    500: '#2f6612',
    950: '#000000',
  },
}
SCSS
$custom: #2f6612;
$custom-light: #6e9257;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6612",
  "rgb": {
    "r": 47,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 99.286,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.45526,
    "c": 0.1273,
    "h": 137.4
  },
  "luminance": 0.10151
}

Semantic roles & 50–950 ramp

primary
#2F6612
secondary
#7A369E
accent
#3BEDAF
background
#F6F9F5
surface
#ECF1E9
border
#C7CBC5
text
#080D03
muted
#7B7E78

Preview Lab

Preview with #2F6612

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

Preview Lab → · Contrast checker → · Palette generator →

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