#7F8114#7F8114

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

Color values

HEX#7F8114
RGBrgb(127, 129, 20)
HSLhsl(61, 73%, 29%)
HSVhsv(61, 84%, 51%)
CMYKcmyk(1.6%, 0%, 84.5%, 49.4%)
CIE-LABlab(52.13, -13.47, 52.74)
CIE-LCHlch(52.13, 54.43, 104.33°)
OKLaboklab(58.28% -0.0432 0.1138)
OKLCHoklch(58.28% 0.122 110.8)
XYZxyz(16.7295, 20.2635, 3.6917)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8114 #161481
analogous
#814D14 #7F8114 #498114
triadic
#7F8114 #147F81 #81147F
tetradic
#7F8114 #14814D #161481 #811449
square
#7F8114 #14814D #161481 #811449
split-complementary
#7F8114 #144981 #4D1481
monochromatic
#1A1A04 #4B4C0C #7F8114 #B3B61C #DCDF30

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8114#FFFFFF#000000##000000
##7F81141.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)
#8D7E1F
Tritanopia (blue-blind)
#89786E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8114;
/* rgb */ color: rgb(127, 129, 20);
/* oklch */ color: oklch(58.3% 0.122 110.8);
Tailwind
colors: {
  custom: {
    50: '#a8a55e',
    500: '#7f8114',
    950: '#000000',
  },
}
SCSS
$custom: #7f8114;
$custom-light: #a8a55e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8114",
  "rgb": {
    "r": 127,
    "g": 129,
    "b": 20
  },
  "hsl": {
    "h": 61.101,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.58275,
    "c": 0.12169,
    "h": 110.8
  },
  "luminance": 0.20263
}

Semantic roles & 50–950 ramp

primary
#7F8114
secondary
#3D3BB6
accent
#38F03B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8114

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

Preview Lab → · Contrast checker → · Palette generator →

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