#7F7B15#7F7B15

#7F7B15 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.9% C 0.115 H 107.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7F7B15
RGBrgb(127, 123, 21)
HSLhsl(58, 72%, 29%)
HSVhsv(58, 83%, 50%)
CMYKcmyk(0%, 3.1%, 83.5%, 50.2%)
CIE-LABlab(50.37, -10.18, 50.94)
CIE-LCHlch(50.37, 51.95, 101.30°)
OKLaboklab(56.87% -0.0339 0.1101)
OKLCHoklch(56.87% 0.115 107.1)
XYZxyz(15.9714, 18.7327, 3.4838)
Luminance0.1873 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7B15 #15197F
analogous
#7F4615 #7F7B15 #4E7F15
triadic
#7F7B15 #157F7B #7B157F
tetradic
#7F7B15 #157F46 #15197F #7F154E
square
#7F7B15 #157F46 #15197F #7F154E
split-complementary
#7F7B15 #154E7F #46157F
monochromatic
#1A1904 #4A480C #7F7B15 #B4AE1E #DDD731

Accessibility & contrast

On white

4.42
#7F7B15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#7F7B15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7B15
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7B15#FFFFFF#000000##000000
##7F7B151.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#887A1E
Tritanopia (blue-blind)
#897269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f7b15;
/* rgb */ color: rgb(127, 123, 21);
/* oklch */ color: oklch(56.9% 0.115 107.1);
Tailwind
colors: {
  custom: {
    50: '#a8a05e',
    500: '#7f7b15',
    950: '#000000',
  },
}
SCSS
$custom: #7f7b15;
$custom-light: #a8a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7b15",
  "rgb": {
    "r": 127,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 57.736,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5687,
    "c": 0.1152,
    "h": 107.1
  },
  "luminance": 0.18732
}

Semantic roles & 50–950 ramp

primary
#7F7B15
secondary
#3C40B4
accent
#40EE39
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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