#7F8A32#7F8A32

#7F8A32 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#7F8A32
RGBrgb(127, 138, 50)
HSLhsl(68, 47%, 37%)
HSVhsv(68, 64%, 54%)
CMYKcmyk(8%, 0%, 63.8%, 45.9%)
CIE-LABlab(54.99, -16.66, 44.35)
CIE-LCHlch(54.99, 47.37, 110.59°)
OKLaboklab(60.62% -0.0492 0.1013)
OKLCHoklch(60.62% 0.113 115.9)
XYZxyz(18.4170, 22.9195, 6.4707)
Luminance0.2292 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A32 #3D328A
analogous
#8A6932 #7F8A32 #538A32
triadic
#7F8A32 #327F8A #8A327F
tetradic
#7F8A32 #328A69 #3D328A #8A3253
square
#7F8A32 #328A69 #3D328A #8A3253
split-complementary
#7F8A32 #32538A #69328A
monochromatic
#2C3011 #565D22 #7F8A32 #A8B742 #BECA6C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8A32#FFFFFF#000000##000000
##7F8A321.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)
#938327
Deuteranopia (green-blind)
#928438
Tritanopia (blue-blind)
#878278
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8a32;
/* rgb */ color: rgb(127, 138, 50);
/* oklch */ color: oklch(60.6% 0.113 115.9);
Tailwind
colors: {
  custom: {
    50: '#a6ac6e',
    500: '#7f8a32',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a32;
$custom-light: #a6ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a32",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 50
  },
  "hsl": {
    "h": 67.5,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60624,
    "c": 0.11263,
    "h": 115.9
  },
  "luminance": 0.22919
}

Semantic roles & 50–950 ramp

primary
#7F8A32
secondary
#7066B2
accent
#51D662
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8A32

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

Preview Lab → · Contrast checker → · Palette generator →

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