#7F8D26#7F8D26

#7F8D26 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.2% C 0.125 H 117.0°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7F8D26
RGBrgb(127, 141, 38)
HSLhsl(68, 58%, 35%)
HSVhsv(68, 73%, 55%)
CMYKcmyk(9.9%, 0%, 73%, 44.7%)
CIE-LABlab(55.79, -19.00, 50.17)
CIE-LCHlch(55.79, 53.65, 110.74°)
OKLaboklab(61.23% -0.0569 0.1117)
OKLCHoklch(61.23% 0.125 117)
XYZxyz(18.6276, 23.7019, 5.4270)
Luminance0.2370 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D26 #34268D
analogous
#8D6726 #7F8D26 #4C8D26
triadic
#7F8D26 #267F8D #8D267F
tetradic
#7F8D26 #268D67 #34268D #8D264C
square
#7F8D26 #268D67 #34268D #8D264C
split-complementary
#7F8D26 #264C8D #67268D
monochromatic
#282D0C #545D19 #7F8D26 #AABD33 #C2D35B

Accessibility & contrast

On white

3.66
#7F8D26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#7F8D26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8D26
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8D26#FFFFFF#000000##000000
##7F8D261.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978513
Deuteranopia (green-blind)
#96862E
Tritanopia (blue-blind)
#878579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8d26;
/* rgb */ color: rgb(127, 141, 38);
/* oklch */ color: oklch(61.2% 0.125 117.0);
Tailwind
colors: {
  custom: {
    50: '#a7ae68',
    500: '#7f8d26',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d26;
$custom-light: #a7ae68;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d26",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 38
  },
  "hsl": {
    "h": 68.155,
    "s": 57.542,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61235,
    "c": 0.12534,
    "h": 117
  },
  "luminance": 0.23702
}

Semantic roles & 50–950 ramp

primary
#7F8D26
secondary
#6457B8
accent
#47E15C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7F8D26

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

Preview Lab → · Contrast checker → · Palette generator →

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