#7F8115#7F8115

#7F8115 is a mid, vivid yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.121 H 110.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7F8115
RGBrgb(127, 129, 21)
HSLhsl(61, 72%, 29%)
HSVhsv(61, 84%, 51%)
CMYKcmyk(1.6%, 0%, 83.7%, 49.4%)
CIE-LABlab(52.14, -13.44, 52.47)
CIE-LCHlch(52.14, 54.16, 104.36°)
OKLaboklab(58.28% -0.043 0.1134)
OKLCHoklch(58.28% 0.121 110.8)
XYZxyz(16.7386, 20.2672, 3.7395)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8115 #171581
analogous
#814D15 #7F8115 #498115
triadic
#7F8115 #157F81 #81157F
tetradic
#7F8115 #15814D #171581 #811549
square
#7F8115 #15814D #171581 #811549
split-complementary
#7F8115 #154981 #4D1581
monochromatic
#1A1A04 #4B4C0C #7F8115 #B3B61E #DBDE33

Accessibility & contrast

On white

4.16
#7F8115 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#7F8115 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8115
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8115#FFFFFF#000000##000000
##7F81151.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#8D7E20
Tritanopia (blue-blind)
#89786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8115;
/* rgb */ color: rgb(127, 129, 21);
/* oklch */ color: oklch(58.3% 0.121 110.8);
Tailwind
colors: {
  custom: {
    50: '#a8a55e',
    500: '#7f8115',
    950: '#000000',
  },
}
SCSS
$custom: #7f8115;
$custom-light: #a8a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8115",
  "rgb": {
    "r": 127,
    "g": 129,
    "b": 21
  },
  "hsl": {
    "h": 61.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5828,
    "c": 0.12126,
    "h": 110.8
  },
  "luminance": 0.20267
}

Semantic roles & 50–950 ramp

primary
#7F8115
secondary
#3E3CB6
accent
#39EF3C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8115

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

Preview Lab → · Contrast checker → · Palette generator →

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