#7F8A2C#7F8A2C

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

Color values

HEX#7F8A2C
RGBrgb(127, 138, 44)
HSLhsl(67, 52%, 36%)
HSVhsv(67, 68%, 54%)
CMYKcmyk(8%, 0%, 68.1%, 45.9%)
CIE-LABlab(54.94, -17.08, 46.91)
CIE-LCHlch(54.94, 49.93, 110.00°)
OKLaboklab(60.57% -0.051 0.1058)
OKLCHoklch(60.57% 0.117 115.7)
XYZxyz(18.2959, 22.8711, 5.8331)
Luminance0.2287 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8A2C #372C8A
analogous
#8A662C #7F8A2C #508A2C
triadic
#7F8A2C #2C7F8A #8A2C7F
tetradic
#7F8A2C #2C8A66 #372C8A #8A2C50
square
#7F8A2C #2C8A66 #372C8A #8A2C50
split-complementary
#7F8A2C #2C508A #662C8A
monochromatic
#2A2D0E #545C1D #7F8A2C #AAB83B #C1CD63

Accessibility & contrast

On white

3.77
#7F8A2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#7F8A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8A2C
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8A2C#FFFFFF#000000##000000
##7F8A2C1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831F
Deuteranopia (green-blind)
#938433
Tritanopia (blue-blind)
#878277
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7f8a2c;
/* rgb */ color: rgb(127, 138, 44);
/* oklch */ color: oklch(60.6% 0.117 115.7);
Tailwind
colors: {
  custom: {
    50: '#a7ac6b',
    500: '#7f8a2c',
    950: '#000000',
  },
}
SCSS
$custom: #7f8a2c;
$custom-light: #a7ac6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8a2c",
  "rgb": {
    "r": 127,
    "g": 138,
    "b": 44
  },
  "hsl": {
    "h": 67.021,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60568,
    "c": 0.11746,
    "h": 115.7
  },
  "luminance": 0.22871
}

Semantic roles & 50–950 ramp

primary
#7F8A2C
secondary
#685EB4
accent
#4DDB5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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