#7F8B2A#7F8B2A

#7F8B2A is a mid, vivid yellow. Relative luminance 0.231; OKLCH L 60.8% C 0.120 H 116.2°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7F8B2A
RGBrgb(127, 139, 42)
HSLhsl(67, 54%, 35%)
HSVhsv(67, 70%, 55%)
CMYKcmyk(8.6%, 0%, 69.8%, 45.5%)
CIE-LABlab(55.22, -17.73, 48.03)
CIE-LCHlch(55.22, 51.20, 110.26°)
OKLaboklab(60.79% -0.053 0.1078)
OKLCHoklch(60.79% 0.12 116.2)
XYZxyz(18.4034, 23.1447, 5.6879)
Luminance0.2314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8B2A #362A8B
analogous
#8B662A #7F8B2A #4E8B2A
triadic
#7F8B2A #2A7F8B #8B2A7F
tetradic
#7F8B2A #2A8B66 #362A8B #8B2A4E
square
#7F8B2A #2A8B66 #362A8B #8B2A4E
split-complementary
#7F8B2A #2A4E8B #662A8B
monochromatic
#292D0E #545C1C #7F8B2A #AABA38 #C1CF60

Accessibility & contrast

On white

3.73
#7F8B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#7F8B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8B2A
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8B2A#FFFFFF#000000##000000
##7F8B2A1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841B
Deuteranopia (green-blind)
#948531
Tritanopia (blue-blind)
#878378
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7f8b2a;
/* rgb */ color: rgb(127, 139, 42);
/* oklch */ color: oklch(60.8% 0.120 116.2);
Tailwind
colors: {
  custom: {
    50: '#a7ac6a',
    500: '#7f8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #7f8b2a;
$custom-light: #a7ac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8b2a",
  "rgb": {
    "r": 127,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 67.423,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.60789,
    "c": 0.12016,
    "h": 116.2
  },
  "luminance": 0.23144
}

Semantic roles & 50–950 ramp

primary
#7F8B2A
secondary
#675CB5
accent
#4BDD5D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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