#3F7A12#3F7A12

#3F7A12 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 51.9% C 0.144 H 135.6°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#3F7A12
RGBrgb(63, 122, 18)
HSLhsl(94, 74%, 27%)
HSVhsv(94, 85%, 48%)
CMYKcmyk(48.4%, 0%, 85.2%, 52.2%)
CIE-LABlab(45.66, -36.88, 45.97)
CIE-LCHlch(45.66, 58.94, 128.74°)
OKLaboklab(51.93% -0.1031 0.1011)
OKLCHoklch(51.93% 0.144 135.6)
XYZxyz(9.1184, 15.0189, 2.9906)
Luminance0.1502 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F7A12 #4D127A
analogous
#737A12 #3F7A12 #127A19
triadic
#3F7A12 #123F7A #7A123F
tetradic
#3F7A12 #12737A #4D127A #7A1912
square
#3F7A12 #12737A #4D127A #7A1912
split-complementary
#3F7A12 #19127A #7A1273
monochromatic
#0E1B04 #23450A #3F7A12 #5BAF1A #77DF27

Accessibility & contrast

On white

5.24
#3F7A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#3F7A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F7A12
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F7A12#FFFFFF#000000##FFFFFF
##3F7A121.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#776A1F
Tritanopia (blue-blind)
#3D7567
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3f7a12;
/* rgb */ color: rgb(63, 122, 18);
/* oklch */ color: oklch(51.9% 0.144 135.6);
Tailwind
colors: {
  custom: {
    50: '#7ba15b',
    500: '#3f7a12',
    950: '#000000',
  },
}
SCSS
$custom: #3f7a12;
$custom-light: #7ba15b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f7a12",
  "rgb": {
    "r": 63,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 94.038,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.5193,
    "c": 0.14443,
    "h": 135.6
  },
  "luminance": 0.1502
}

Semantic roles & 50–950 ramp

primary
#3F7A12
secondary
#7C38B0
accent
#37F1A0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F04
muted
#7C7E79

Preview Lab

Preview with #3F7A12

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

Preview Lab → · Contrast checker → · Palette generator →

#3F7A12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva