#7F8A42#7F8A42

#7F8A42 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 60.8% C 0.097 H 116.6°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#7F8A42
RGBrgb(127, 138, 66)
HSLhsl(69, 35%, 40%)
HSVhsv(69, 52%, 54%)
CMYKcmyk(8%, 0%, 52.2%, 45.9%)
CIE-LABlab(55.16, -15.26, 36.82)
CIE-LCHlch(55.16, 39.86, 112.51°)
OKLaboklab(60.81% -0.0435 0.0871)
OKLCHoklch(60.81% 0.097 116.6)
XYZxyz(18.8245, 23.0825, 8.6169)
Luminance0.2308 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A42 #4D428A
analogous
#8A7142 #7F8A42 #5B8A42
triadic
#7F8A42 #427F8A #8A427F
tetradic
#7F8A42 #428A71 #4D428A #8A425B
square
#7F8A42 #428A71 #4D428A #8A425B
split-complementary
#7F8A42 #425B8A #71428A
monochromatic
#33371A #59612E #7F8A42 #A3B059 #BAC483

Accessibility & contrast

On white

3.74
#7F8A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#7F8A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A42
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A42#FFFFFF#000000##000000
##7F8A421.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92843B
Deuteranopia (green-blind)
#918546
Tritanopia (blue-blind)
#86837A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8a42;
/* rgb */ color: rgb(127, 138, 66);
/* oklch */ color: oklch(60.8% 0.097 116.6);
Tailwind
colors: {
  custom: {
    50: '#a6ac78',
    500: '#7f8a42',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a42;
$custom-light: #a6ac78;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a42",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 66
  },
  "hsl": {
    "h": 69.167,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.60812,
    "c": 0.09737,
    "h": 116.6
  },
  "luminance": 0.23082
}

Semantic roles & 50–950 ramp

primary
#7F8A42
secondary
#8279AE
accent
#5CCB6D
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1009
muted
#7F7F7B

Preview Lab

Preview with #7F8A42

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

Preview Lab → · Contrast checker → · Palette generator →

#7F8A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva