#627F12#627F12

#627F12 is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.4% C 0.132 H 124.5°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#627F12
RGBrgb(98, 127, 18)
HSLhsl(76, 75%, 28%)
HSVhsv(76, 86%, 50%)
CMYKcmyk(22.8%, 0%, 85.8%, 50.2%)
CIE-LABlab(49.28, -25.50, 49.93)
CIE-LCHlch(49.28, 56.07, 117.06°)
OKLaboklab(55.41% -0.0747 0.1086)
OKLCHoklch(55.41% 0.132 124.5)
XYZxyz(12.7357, 17.8189, 3.3406)
Luminance0.1782 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#627F12 #2F127F
analogous
#7F6512 #627F12 #2C7F12
triadic
#627F12 #12627F #7F1262
tetradic
#627F12 #127F65 #2F127F #7F122C
square
#627F12 #127F65 #2F127F #7F122C
split-complementary
#627F12 #122C7F #65127F
monochromatic
#151B04 #39490A #627F12 #8BB51A #B0E12B

Accessibility & contrast

On white

4.60
#627F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#627F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #627F12
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##627F12#FFFFFF#000000##FFFFFF
##627F121.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#83751F
Tritanopia (blue-blind)
#67786C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #627f12;
/* rgb */ color: rgb(98, 127, 18);
/* oklch */ color: oklch(55.4% 0.132 124.5);
Tailwind
colors: {
  custom: {
    50: '#92a45c',
    500: '#627f12',
    950: '#000000',
  },
}
SCSS
$custom: #627f12;
$custom-light: #92a45c;
$custom-dark: #000000;
JSON
{
  "hex": "#627f12",
  "rgb": {
    "r": 98,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 75.963,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55409,
    "c": 0.13179,
    "h": 124.5
  },
  "luminance": 0.17819
}

Semantic roles & 50–950 ramp

primary
#627F12
secondary
#5938B5
accent
#36F268
background
#F9FAF5
surface
#F2F4E9
border
#CCCEC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #627F12

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

Preview Lab → · Contrast checker → · Palette generator →

#627F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva