#7F8117#7F8117

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

Color values

HEX#7F8117
RGBrgb(127, 129, 23)
HSLhsl(61, 70%, 30%)
HSVhsv(61, 82%, 51%)
CMYKcmyk(1.6%, 0%, 82.2%, 49.4%)
CIE-LABlab(52.15, -13.37, 51.90)
CIE-LCHlch(52.15, 53.59, 104.44°)
OKLaboklab(58.29% -0.0426 0.1125)
OKLCHoklch(58.29% 0.12 110.8)
XYZxyz(16.7579, 20.2749, 3.8411)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8117 #191781
analogous
#814E17 #7F8117 #4A8117
triadic
#7F8117 #177F81 #81177F
tetradic
#7F8117 #17814E #191781 #81174A
square
#7F8117 #17814E #191781 #81174A
split-complementary
#7F8117 #174A81 #4E1781
monochromatic
#1A1A05 #4C4D0E #7F8117 #B2B520 #D8DB37

Accessibility & contrast

On white

4.15
#7F8117 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8117#FFFFFF#000000##000000
##7F81171.004.155.055.05
#FFFFFF4.151.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f8117;
/* rgb */ color: rgb(127, 129, 23);
/* oklch */ color: oklch(58.3% 0.120 110.8);
Tailwind
colors: {
  custom: {
    50: '#a8a55f',
    500: '#7f8117',
    950: '#000000',
  },
}
SCSS
$custom: #7f8117;
$custom-light: #a8a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8117",
  "rgb": {
    "r": 127,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 61.132,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.58289,
    "c": 0.12035,
    "h": 110.8
  },
  "luminance": 0.20274
}

Semantic roles & 50–950 ramp

primary
#7F8117
secondary
#413EB5
accent
#3BED3F
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8117

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

Preview Lab → · Contrast checker → · Palette generator →

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