#7F8232#7F8232

#7F8232 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.7% C 0.103 H 111.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7F8232
RGBrgb(127, 130, 50)
HSLhsl(62, 44%, 35%)
HSVhsv(62, 62%, 51%)
CMYKcmyk(2.3%, 0%, 61.5%, 49%)
CIE-LABlab(52.63, -12.39, 41.79)
CIE-LCHlch(52.63, 43.59, 106.52°)
OKLaboklab(58.73% -0.0372 0.0959)
OKLCHoklch(58.73% 0.103 111.2)
XYZxyz(17.3112, 20.7080, 6.1021)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8232 #353282
analogous
#825D32 #7F8232 #578232
triadic
#7F8232 #327F82 #82327F
tetradic
#7F8232 #32825D #353282 #823257
square
#7F8232 #32825D #353282 #823257
split-complementary
#7F8232 #325782 #5D3282
monochromatic
#292A10 #545621 #7F8232 #AAAE43 #C2C569

Accessibility & contrast

On white

4.08
#7F8232 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#7F8232 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8232
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8232#FFFFFF#000000##000000
##7F82321.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C29
Deuteranopia (green-blind)
#8C7F37
Tritanopia (blue-blind)
#877A71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7f8232;
/* rgb */ color: rgb(127, 130, 50);
/* oklch */ color: oklch(58.7% 0.103 111.2);
Tailwind
colors: {
  custom: {
    50: '#a6a66d',
    500: '#7f8232',
    950: '#000000',
  },
}
SCSS
$custom: #7f8232;
$custom-light: #a6a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8232",
  "rgb": {
    "r": 127,
    "g": 130,
    "b": 50
  },
  "hsl": {
    "h": 62.25,
    "s": 44.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58734,
    "c": 0.10286,
    "h": 111.2
  },
  "luminance": 0.20708
}

Semantic roles & 50–950 ramp

primary
#7F8232
secondary
#6663AD
accent
#54D458
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#100F07
muted
#7F7F7A

Preview Lab

Preview with #7F8232

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

Preview Lab → · Contrast checker → · Palette generator →

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