#7F8D29#7F8D29

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

Color values

HEX#7F8D29
RGBrgb(127, 141, 41)
HSLhsl(68, 55%, 36%)
HSVhsv(68, 71%, 55%)
CMYKcmyk(9.9%, 0%, 70.9%, 44.7%)
CIE-LABlab(55.81, -18.83, 49.02)
CIE-LCHlch(55.81, 52.52, 111.01°)
OKLaboklab(61.26% -0.0562 0.1098)
OKLCHoklch(61.26% 0.123 117.1)
XYZxyz(18.6779, 23.7221, 5.6923)
Luminance0.2372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8D29 #37298D
analogous
#8D6929 #7F8D29 #4D8D29
triadic
#7F8D29 #297F8D #8D297F
tetradic
#7F8D29 #298D69 #37298D #8D294D
square
#7F8D29 #298D69 #37298D #8D294D
split-complementary
#7F8D29 #294D8D #69298D
monochromatic
#2A2E0D #545E1B #7F8D29 #AABC37 #C1D160

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8D29#FFFFFF#000000##000000
##7F8D291.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)
#978519
Deuteranopia (green-blind)
#958631
Tritanopia (blue-blind)
#878579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #7f8d29;
/* rgb */ color: rgb(127, 141, 41);
/* oklch */ color: oklch(61.3% 0.123 117.1);
Tailwind
colors: {
  custom: {
    50: '#a7ae69',
    500: '#7f8d29',
    950: '#000000',
  },
}
SCSS
$custom: #7f8d29;
$custom-light: #a7ae69;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8d29",
  "rgb": {
    "r": 127,
    "g": 141,
    "b": 41
  },
  "hsl": {
    "h": 68.4,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61258,
    "c": 0.12331,
    "h": 117.1
  },
  "luminance": 0.23722
}

Semantic roles & 50–950 ramp

primary
#7F8D29
secondary
#685BB6
accent
#4ADE5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #7F8D29

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

Preview Lab → · Contrast checker → · Palette generator →

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