#627E12#627E12

#627E12 is a mid, vivid yellow-green. Relative luminance 0.176; OKLCH L 55.2% C 0.131 H 124.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#627E12
RGBrgb(98, 126, 18)
HSLhsl(76, 75%, 28%)
HSVhsv(76, 86%, 49%)
CMYKcmyk(22.2%, 0%, 85.7%, 50.6%)
CIE-LABlab(48.96, -25.01, 49.66)
CIE-LCHlch(48.96, 55.60, 116.73°)
OKLaboklab(55.15% -0.0734 0.108)
OKLCHoklch(55.15% 0.131 124.2)
XYZxyz(12.6072, 17.5619, 3.2977)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#627E12 #2E127E
analogous
#7E6412 #627E12 #2C7E12
triadic
#627E12 #12627E #7E1262
tetradic
#627E12 #127E64 #2E127E #7E122C
square
#627E12 #127E64 #2E127E #7E122C
split-complementary
#627E12 #122C7E #64127E
monochromatic
#151B04 #38480A #627E12 #8CB41A #B1E12A

Accessibility & contrast

On white

4.65
#627E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#627E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #627E12
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##627E12#FFFFFF#000000##FFFFFF
##627E121.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#82741F
Tritanopia (blue-blind)
#67776B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #627e12;
/* rgb */ color: rgb(98, 126, 18);
/* oklch */ color: oklch(55.2% 0.131 124.2);
Tailwind
colors: {
  custom: {
    50: '#92a35c',
    500: '#627e12',
    950: '#000000',
  },
}
SCSS
$custom: #627e12;
$custom-light: #92a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#627e12",
  "rgb": {
    "r": 98,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 75.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.55154,
    "c": 0.13055,
    "h": 124.2
  },
  "luminance": 0.17562
}

Semantic roles & 50–950 ramp

primary
#627E12
secondary
#5838B4
accent
#36F267
background
#F9FAF5
surface
#F2F3E9
border
#CCCDC5
text
#0D0F05
muted
#7E7F79

Preview Lab

Preview with #627E12

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

Preview Lab → · Contrast checker → · Palette generator →

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