#7F7B1E#7F7B1E

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

Color values

HEX#7F7B1E
RGBrgb(127, 123, 30)
HSLhsl(58, 62%, 31%)
HSVhsv(58, 76%, 50%)
CMYKcmyk(0%, 3.1%, 76.4%, 50.2%)
CIE-LABlab(50.42, -9.81, 48.00)
CIE-LCHlch(50.42, 49.00, 101.55°)
OKLaboklab(56.92% -0.0321 0.1056)
OKLCHoklch(56.92% 0.11 106.9)
XYZxyz(16.0703, 18.7722, 4.0049)
Luminance0.1877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7B1E #1E227F
analogous
#7F4A1E #7F7B1E #527F1E
triadic
#7F7B1E #1E7F7B #7B1E7F
tetradic
#7F7B1E #1E7F4A #1E227F #7F1E52
square
#7F7B1E #1E7F4A #1E227F #7F1E52
split-complementary
#7F7B1E #1E527F #4A1E7F
monochromatic
#1C1B07 #4D4B12 #7F7B1E #B1AB2A #D3CD44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7B1E#FFFFFF#000000##000000
##7F7B1E1.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)
#86760B
Deuteranopia (green-blind)
#887A25
Tritanopia (blue-blind)
#897269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f7b1e;
/* rgb */ color: rgb(127, 123, 30);
/* oklch */ color: oklch(56.9% 0.110 106.9);
Tailwind
colors: {
  custom: {
    50: '#a7a062',
    500: '#7f7b1e',
    950: '#000000',
  },
}
SCSS
$custom: #7f7b1e;
$custom-light: #a7a062;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7b1e",
  "rgb": {
    "r": 127,
    "g": 123,
    "b": 30
  },
  "hsl": {
    "h": 57.526,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56922,
    "c": 0.11037,
    "h": 106.9
  },
  "luminance": 0.18772
}

Semantic roles & 50–950 ramp

primary
#7F7B1E
secondary
#474BB2
accent
#4AE543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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