#627F1F#627F1F

#627F1F is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.5% C 0.125 H 125.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#627F1F
RGBrgb(98, 127, 31)
HSLhsl(78, 61%, 31%)
HSVhsv(78, 76%, 50%)
CMYKcmyk(22.8%, 0%, 75.6%, 50.2%)
CIE-LABlab(49.34, -24.87, 45.80)
CIE-LCHlch(49.34, 52.12, 118.50°)
OKLaboklab(55.48% -0.072 0.1021)
OKLCHoklch(55.48% 0.125 125.2)
XYZxyz(12.8738, 17.8742, 4.0679)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#627F1F #3C1F7F
analogous
#7F6C1F #627F1F #327F1F
triadic
#627F1F #1F627F #7F1F62
tetradic
#627F1F #1F7F6C #3C1F7F #7F1F32
square
#627F1F #1F7F6C #3C1F7F #7F1F32
split-complementary
#627F1F #1F327F #6C1F7F
monochromatic
#161D07 #3C4E13 #627F1F #88B02B #A8D246

Accessibility & contrast

On white

4.59
#627F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#627F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #627F1F
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##627F1F#FFFFFF#000000##FFFFFF
##627F1F1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760C
Deuteranopia (green-blind)
#827528
Tritanopia (blue-blind)
#67796D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #627f1f;
/* rgb */ color: rgb(98, 127, 31);
/* oklch */ color: oklch(55.5% 0.125 125.2);
Tailwind
colors: {
  custom: {
    50: '#92a462',
    500: '#627f1f',
    950: '#000000',
  },
}
SCSS
$custom: #627f1f;
$custom-light: #92a462;
$custom-dark: #000000;
JSON
{
  "hex": "#627f1f",
  "rgb": {
    "r": 98,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 78.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55485,
    "c": 0.12492,
    "h": 125.2
  },
  "luminance": 0.17874
}

Semantic roles & 50–950 ramp

primary
#627F1F
secondary
#6848B2
accent
#44E474
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #627F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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