#7F8A31#7F8A31

#7F8A31 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.6% C 0.113 H 115.9°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7F8A31
RGBrgb(127, 138, 49)
HSLhsl(67, 48%, 37%)
HSVhsv(67, 64%, 54%)
CMYKcmyk(8%, 0%, 64.5%, 45.9%)
CIE-LABlab(54.98, -16.73, 44.79)
CIE-LCHlch(54.98, 47.81, 110.48°)
OKLaboklab(60.61% -0.0495 0.1021)
OKLCHoklch(60.61% 0.113 115.9)
XYZxyz(18.3957, 22.9110, 6.3583)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A31 #3C318A
analogous
#8A6931 #7F8A31 #538A31
triadic
#7F8A31 #317F8A #8A317F
tetradic
#7F8A31 #318A69 #3C318A #8A3153
square
#7F8A31 #318A69 #3C318A #8A3153
split-complementary
#7F8A31 #31538A #69318A
monochromatic
#2C3011 #555D21 #7F8A31 #A9B741 #BFCA6B

Accessibility & contrast

On white

3.76
#7F8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#7F8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A31
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A31#FFFFFF#000000##000000
##7F8A311.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938326
Deuteranopia (green-blind)
#938437
Tritanopia (blue-blind)
#878277
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8a31;
/* rgb */ color: rgb(127, 138, 49);
/* oklch */ color: oklch(60.6% 0.113 115.9);
Tailwind
colors: {
  custom: {
    50: '#a6ac6e',
    500: '#7f8a31',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a31;
$custom-light: #a6ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a31",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 67.416,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60614,
    "c": 0.11347,
    "h": 115.9
  },
  "luminance": 0.22911
}

Semantic roles & 50–950 ramp

primary
#7F8A31
secondary
#6E65B2
accent
#51D761
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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