#7F7B14#7F7B14

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

Color values

HEX#7F7B14
RGBrgb(127, 123, 20)
HSLhsl(58, 73%, 29%)
HSVhsv(58, 84%, 50%)
CMYKcmyk(0%, 3.1%, 84.3%, 50.2%)
CIE-LABlab(50.37, -10.21, 51.23)
CIE-LCHlch(50.37, 52.24, 101.27°)
OKLaboklab(56.87% -0.0341 0.1105)
OKLCHoklch(56.87% 0.116 107.2)
XYZxyz(15.9623, 18.7290, 3.4359)
Luminance0.1873 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7B14 #14187F
analogous
#7F4614 #7F7B14 #4E7F14
triadic
#7F7B14 #147F7B #7B147F
tetradic
#7F7B14 #147F46 #14187F #7F144E
square
#7F7B14 #147F46 #14187F #7F144E
split-complementary
#7F7B14 #144E7F #46147F
monochromatic
#1A1A04 #4A480C #7F7B14 #B4AE1C #DED82F

Accessibility & contrast

On white

4.43
#7F7B14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7B14#FFFFFF#000000##000000
##7F7B141.004.434.754.75
#FFFFFF4.431.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: #7f7b14;
/* rgb */ color: rgb(127, 123, 20);
/* oklch */ color: oklch(56.9% 0.116 107.2);
Tailwind
colors: {
  custom: {
    50: '#a8a05d',
    500: '#7f7b14',
    950: '#000000',
  },
}
SCSS
$custom: #7f7b14;
$custom-light: #a8a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7b14",
  "rgb": {
    "r": 127,
    "g": 123,
    "b": 20
  },
  "hsl": {
    "h": 57.757,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56865,
    "c": 0.11565,
    "h": 107.2
  },
  "luminance": 0.18728
}

Semantic roles & 50–950 ramp

primary
#7F7B14
secondary
#3B3FB4
accent
#3FEF38
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7B14

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

Preview Lab → · Contrast checker → · Palette generator →

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