#7F831F#7F831F

#7F831F is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 58.8% C 0.118 H 111.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7F831F
RGBrgb(127, 131, 31)
HSLhsl(62, 62%, 32%)
HSVhsv(62, 76%, 51%)
CMYKcmyk(3.1%, 0%, 76.3%, 48.6%)
CIE-LABlab(52.78, -14.10, 49.86)
CIE-LCHlch(52.78, 51.82, 105.79°)
OKLaboklab(58.81% -0.044 0.1097)
OKLCHoklch(58.81% 0.118 111.9)
XYZxyz(17.1166, 20.8440, 4.4177)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F831F #231F83
analogous
#83551F #7F831F #4D831F
triadic
#7F831F #1F7F83 #831F7F
tetradic
#7F831F #1F8355 #231F83 #831F4D
square
#7F831F #1F8355 #231F83 #831F4D
split-complementary
#7F831F #1F4D83 #551F83
monochromatic
#1F2008 #4F5213 #7F831F #AFB42B #CED449

Accessibility & contrast

On white

4.06
#7F831F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#7F831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F831F
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F831F#FFFFFF#000000##000000
##7F831F1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D09
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#887B70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7f831f;
/* rgb */ color: rgb(127, 131, 31);
/* oklch */ color: oklch(58.8% 0.118 111.9);
Tailwind
colors: {
  custom: {
    50: '#a7a663',
    500: '#7f831f',
    950: '#000000',
  },
}
SCSS
$custom: #7f831f;
$custom-light: #a7a663;
$custom-dark: #000000;
JSON
{
  "hex": "#7f831f",
  "rgb": {
    "r": 127,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 62.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58808,
    "c": 0.11822,
    "h": 111.9
  },
  "luminance": 0.20844
}

Semantic roles & 50–950 ramp

primary
#7F831F
secondary
#4C48B6
accent
#43E549
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #7F831F

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

Preview Lab → · Contrast checker → · Palette generator →

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