#7B7F1F#7B7F1F

#7B7F1F is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.5% C 0.115 H 111.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7B7F1F
RGBrgb(123, 127, 31)
HSLhsl(63, 61%, 31%)
HSVhsv(63, 76%, 50%)
CMYKcmyk(3.1%, 0%, 75.6%, 50.2%)
CIE-LABlab(51.25, -13.78, 48.30)
CIE-LCHlch(51.25, 50.23, 105.92°)
OKLaboklab(57.51% -0.0429 0.1066)
OKLCHoklch(57.51% 0.115 111.9)
XYZxyz(16.0056, 19.4890, 4.2147)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7F1F #231F7F
analogous
#7F531F #7B7F1F #4B7F1F
triadic
#7B7F1F #1F7B7F #7F1F7B
tetradic
#7B7F1F #1F7F53 #231F7F #7F1F4B
square
#7B7F1F #1F7F53 #231F7F #7F1F4B
split-complementary
#7B7F1F #1F4B7F #531F7F
monochromatic
#1C1D07 #4B4E13 #7B7F1F #ABB02B #CCD246

Accessibility & contrast

On white

4.29
#7B7F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7B7F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7F1F
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7F1F#FFFFFF#000000##000000
##7B7F1F1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790B
Deuteranopia (green-blind)
#8A7B27
Tritanopia (blue-blind)
#84776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7b7f1f;
/* rgb */ color: rgb(123, 127, 31);
/* oklch */ color: oklch(57.5% 0.115 111.9);
Tailwind
colors: {
  custom: {
    50: '#a4a362',
    500: '#7b7f1f',
    950: '#000000',
  },
}
SCSS
$custom: #7b7f1f;
$custom-light: #a4a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7f1f",
  "rgb": {
    "r": 123,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 62.5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57505,
    "c": 0.11487,
    "h": 111.9
  },
  "luminance": 0.19489
}

Semantic roles & 50–950 ramp

primary
#7B7F1F
secondary
#4C48B2
accent
#44E44B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7B7F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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