#638D1F#638D1F

#638D1F is a mid, vivid yellow-green. Relative luminance 0.218; OKLCH L 59.1% C 0.143 H 128.8°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#638D1F
RGBrgb(99, 141, 31)
HSLhsl(83, 64%, 34%)
HSVhsv(83, 78%, 55%)
CMYKcmyk(29.8%, 0%, 78%, 44.7%)
CIE-LABlab(53.82, -31.22, 50.12)
CIE-LCHlch(53.82, 59.05, 121.92°)
OKLaboklab(59.13% -0.0894 0.1111)
OKLCHoklch(59.13% 0.143 128.8)
XYZxyz(14.9178, 21.8009, 4.7181)
Luminance0.2180 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#638D1F #491F8D
analogous
#8D801F #638D1F #2C8D1F
triadic
#638D1F #1F638D #8D1F63
tetradic
#638D1F #1F8D80 #491F8D #8D1F2C
square
#638D1F #1F8D80 #491F8D #8D1F2C
split-complementary
#638D1F #1F2C8D #801F8D
monochromatic
#1D2909 #405B14 #638D1F #86BF2A #A3D84E

Accessibility & contrast

On white

3.92
#638D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#638D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #638D1F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##638D1F#FFFFFF#000000##000000
##638D1F1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948204
Deuteranopia (green-blind)
#8E802A
Tritanopia (blue-blind)
#668678
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #638d1f;
/* rgb */ color: rgb(99, 141, 31);
/* oklch */ color: oklch(59.1% 0.143 128.8);
Tailwind
colors: {
  custom: {
    50: '#93ae64',
    500: '#638d1f',
    950: '#000000',
  },
}
SCSS
$custom: #638d1f;
$custom-light: #93ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#638d1f",
  "rgb": {
    "r": 99,
    "g": 141,
    "b": 31
  },
  "hsl": {
    "h": 82.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59132,
    "c": 0.1426,
    "h": 128.8
  },
  "luminance": 0.21801
}

Semantic roles & 50–950 ramp

primary
#638D1F
secondary
#774DBB
accent
#41E780
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #638D1F

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

Preview Lab → · Contrast checker → · Palette generator →

#638D1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva