#7F8E2A#7F8E2A

#7F8E2A is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.5% C 0.124 H 117.6°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7F8E2A
RGBrgb(127, 142, 42)
HSLhsl(69, 54%, 36%)
HSVhsv(69, 70%, 56%)
CMYKcmyk(10.6%, 0%, 70.4%, 44.3%)
CIE-LABlab(56.11, -19.28, 48.93)
CIE-LCHlch(56.11, 52.59, 111.51°)
OKLaboklab(61.51% -0.0573 0.1097)
OKLCHoklch(61.51% 0.124 117.6)
XYZxyz(18.8437, 24.0254, 5.8347)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8E2A #392A8E
analogous
#8E6B2A #7F8E2A #4D8E2A
triadic
#7F8E2A #2A7F8E #8E2A7F
tetradic
#7F8E2A #2A8E6B #392A8E #8E2A4D
square
#7F8E2A #2A8E6B #392A8E #8E2A4D
split-complementary
#7F8E2A #2A4D8E #6B2A8E
monochromatic
#2B300E #555F1C #7F8E2A #A9BD38 #C0D162

Accessibility & contrast

On white

3.62
#7F8E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#7F8E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8E2A
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8E2A#FFFFFF#000000##000000
##7F8E2A1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#98861A
Deuteranopia (green-blind)
#968732
Tritanopia (blue-blind)
#87867A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8e2a;
/* rgb */ color: rgb(127, 142, 42);
/* oklch */ color: oklch(61.5% 0.124 117.6);
Tailwind
colors: {
  custom: {
    50: '#a7af6a',
    500: '#7f8e2a',
    950: '#000000',
  },
}
SCSS
$custom: #7f8e2a;
$custom-light: #a7af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8e2a",
  "rgb": {
    "r": 127,
    "g": 142,
    "b": 42
  },
  "hsl": {
    "h": 69,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.61505,
    "c": 0.12382,
    "h": 117.6
  },
  "luminance": 0.24025
}

Semantic roles & 50–950 ramp

primary
#7F8E2A
secondary
#6B5DB6
accent
#4ADE60
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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