#3F7C12#3F7C12

#3F7C12 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.5% C 0.147 H 135.8°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#3F7C12
RGBrgb(63, 124, 18)
HSLhsl(95, 75%, 28%)
HSVhsv(95, 85%, 49%)
CMYKcmyk(49.2%, 0%, 85.5%, 51.4%)
CIE-LABlab(46.33, -37.72, 46.57)
CIE-LCHlch(46.33, 59.93, 129.01°)
OKLaboklab(52.48% -0.1054 0.1024)
OKLCHoklch(52.48% 0.147 135.8)
XYZxyz(9.3665, 15.5151, 3.0733)
Luminance0.1552 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F7C12 #4F127C
analogous
#747C12 #3F7C12 #127C1A
triadic
#3F7C12 #123F7C #7C123F
tetradic
#3F7C12 #12747C #4F127C #7C1A12
square
#3F7C12 #12747C #4F127C #7C1A12
split-complementary
#3F7C12 #1A127C #7C1274
monochromatic
#0E1B04 #24470A #3F7C12 #5AB11A #76E029

Accessibility & contrast

On white

5.12
#3F7C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#3F7C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3F7C12
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F7C12#FFFFFF#000000##FFFFFF
##3F7C121.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#796C1F
Tritanopia (blue-blind)
#3C7769
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #3f7c12;
/* rgb */ color: rgb(63, 124, 18);
/* oklch */ color: oklch(52.5% 0.147 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ba25b',
    500: '#3f7c12',
    950: '#000000',
  },
}
SCSS
$custom: #3f7c12;
$custom-light: #7ba25b;
$custom-dark: #000000;
JSON
{
  "hex": "#3f7c12",
  "rgb": {
    "r": 63,
    "g": 124,
    "b": 18
  },
  "hsl": {
    "h": 94.528,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52482,
    "c": 0.14692,
    "h": 135.8
  },
  "luminance": 0.15516
}

Semantic roles & 50–950 ramp

primary
#3F7C12
secondary
#7E38B2
accent
#37F1A2
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #3F7C12

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

Preview Lab → · Contrast checker → · Palette generator →

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