#7F8915#7F8915

#7F8915 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.130 H 114.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7F8915
RGBrgb(127, 137, 21)
HSLhsl(65, 73%, 31%)
HSVhsv(65, 85%, 54%)
CMYKcmyk(7.3%, 0%, 84.7%, 46.3%)
CIE-LABlab(54.51, -17.67, 54.51)
CIE-LCHlch(54.51, 57.30, 107.96°)
OKLaboklab(60.18% -0.0547 0.1178)
OKLCHoklch(60.18% 0.13 114.9)
XYZxyz(17.8340, 22.4578, 4.1046)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8915 #1F1589
analogous
#895915 #7F8915 #458915
triadic
#7F8915 #157F89 #89157F
tetradic
#7F8915 #158959 #1F1589 #891545
square
#7F8915 #158959 #1F1589 #891545
split-complementary
#7F8915 #154589 #591589
monochromatic
#1D1F05 #4E540D #7F8915 #B0BE1D #D2E038

Accessibility & contrast

On white

3.82
#7F8915 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7F8915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8915
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8915#FFFFFF#000000##000000
##7F89151.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#938321
Tritanopia (blue-blind)
#888074
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7f8915;
/* rgb */ color: rgb(127, 137, 21);
/* oklch */ color: oklch(60.2% 0.130 114.9);
Tailwind
colors: {
  custom: {
    50: '#a8ab60',
    500: '#7f8915',
    950: '#000000',
  },
}
SCSS
$custom: #7f8915;
$custom-light: #a8ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8915",
  "rgb": {
    "r": 127,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 65.172,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.6018,
    "c": 0.12986,
    "h": 114.9
  },
  "luminance": 0.22457
}

Semantic roles & 50–950 ramp

primary
#7F8915
secondary
#483DBD
accent
#38F048
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7F8915

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

Preview Lab → · Contrast checker → · Palette generator →

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