#7F8E2B#7F8E2B

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

Color values

HEX#7F8E2B
RGBrgb(127, 142, 43)
HSLhsl(69, 54%, 36%)
HSVhsv(69, 70%, 56%)
CMYKcmyk(10.6%, 0%, 69.7%, 44.3%)
CIE-LABlab(56.12, -19.22, 48.53)
CIE-LCHlch(56.12, 52.20, 111.60°)
OKLaboklab(61.51% -0.0571 0.1091)
OKLCHoklch(61.51% 0.123 117.6)
XYZxyz(18.8618, 24.0326, 5.9302)
Luminance0.2403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8E2B #3A2B8E
analogous
#8E6C2B #7F8E2B #4E8E2B
triadic
#7F8E2B #2B7F8E #8E2B7F
tetradic
#7F8E2B #2B8E6C #3A2B8E #8E2B4E
square
#7F8E2B #2B8E6C #3A2B8E #8E2B4E
split-complementary
#7F8E2B #2B4E8E #6C2B8E
monochromatic
#2B300F #555F1D #7F8E2B #A9BD39 #BFD063

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8E2B#FFFFFF#000000##000000
##7F8E2B1.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)
#98861C
Deuteranopia (green-blind)
#968733
Tritanopia (blue-blind)
#87867A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8e2b;
/* rgb */ color: rgb(127, 142, 43);
/* oklch */ color: oklch(61.5% 0.123 117.6);
Tailwind
colors: {
  custom: {
    50: '#a7af6b',
    500: '#7f8e2b',
    950: '#000000',
  },
}
SCSS
$custom: #7f8e2b;
$custom-light: #a7af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8e2b",
  "rgb": {
    "r": 127,
    "g": 142,
    "b": 43
  },
  "hsl": {
    "h": 69.091,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.61513,
    "c": 0.1231,
    "h": 117.6
  },
  "luminance": 0.24032
}

Semantic roles & 50–950 ramp

primary
#7F8E2B
secondary
#6C5FB6
accent
#4BDD61
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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