#7F7C12#7F7C12

#7F7C12 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.1% C 0.117 H 107.8°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#7F7C12
RGBrgb(127, 124, 18)
HSLhsl(58, 75%, 28%)
HSVhsv(58, 86%, 50%)
CMYKcmyk(0%, 2.4%, 85.8%, 50.2%)
CIE-LABlab(50.65, -10.82, 52.02)
CIE-LCHlch(50.65, 53.13, 101.75°)
OKLaboklab(57.09% -0.036 0.1118)
OKLCHoklch(57.09% 0.117 107.8)
XYZxyz(16.0699, 18.9716, 3.3875)
Luminance0.1897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7C12 #12157F
analogous
#7F4512 #7F7C12 #4B7F12
triadic
#7F7C12 #127F7C #7C127F
tetradic
#7F7C12 #127F45 #12157F #7F124B
square
#7F7C12 #127F45 #12157F #7F124B
split-complementary
#7F7C12 #124B7F #45127F
monochromatic
#1B1A04 #49480A #7F7C12 #B5B01A #E1DC2B

Accessibility & contrast

On white

4.38
#7F7C12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#7F7C12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7C12
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7C12#FFFFFF#000000##000000
##7F7C121.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#897A1D
Tritanopia (blue-blind)
#897369
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7c12;
/* rgb */ color: rgb(127, 124, 18);
/* oklch */ color: oklch(57.1% 0.117 107.8);
Tailwind
colors: {
  custom: {
    50: '#a8a15d',
    500: '#7f7c12',
    950: '#000000',
  },
}
SCSS
$custom: #7f7c12;
$custom-light: #a8a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7c12",
  "rgb": {
    "r": 127,
    "g": 124,
    "b": 18
  },
  "hsl": {
    "h": 58.349,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5709,
    "c": 0.11747,
    "h": 107.8
  },
  "luminance": 0.18971
}

Semantic roles & 50–950 ramp

primary
#7F7C12
secondary
#383CB5
accent
#3BF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7C12

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

Preview Lab → · Contrast checker → · Palette generator →

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