#7B7F1E#7B7F1E

#7B7F1E 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#7B7F1E
RGBrgb(123, 127, 30)
HSLhsl(62, 62%, 31%)
HSVhsv(62, 76%, 50%)
CMYKcmyk(3.1%, 0%, 76.4%, 50.2%)
CIE-LABlab(51.25, -13.83, 48.66)
CIE-LCHlch(51.25, 50.59, 105.87°)
OKLaboklab(57.5% -0.0431 0.1071)
OKLCHoklch(57.5% 0.115 111.9)
XYZxyz(15.9926, 19.4838, 4.1463)
Luminance0.1948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7F1E #221E7F
analogous
#7F521E #7B7F1E #4A7F1E
triadic
#7B7F1E #1E7B7F #7F1E7B
tetradic
#7B7F1E #1E7F52 #221E7F #7F1E4A
square
#7B7F1E #1E7F52 #221E7F #7F1E4A
split-complementary
#7B7F1E #1E4A7F #521E7F
monochromatic
#1B1C07 #4B4D12 #7B7F1E #ABB12A #CDD344

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B7F1E#FFFFFF#000000##000000
##7B7F1E1.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)
#897909
Deuteranopia (green-blind)
#8A7B26
Tritanopia (blue-blind)
#84776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7b7f1e;
/* rgb */ color: rgb(123, 127, 30);
/* oklch */ color: oklch(57.5% 0.115 111.9);
Tailwind
colors: {
  custom: {
    50: '#a4a362',
    500: '#7b7f1e',
    950: '#000000',
  },
}
SCSS
$custom: #7b7f1e;
$custom-light: #a4a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7f1e",
  "rgb": {
    "r": 123,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 62.474,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57498,
    "c": 0.11549,
    "h": 111.9
  },
  "luminance": 0.19483
}

Semantic roles & 50–950 ramp

primary
#7B7F1E
secondary
#4B47B2
accent
#43E54A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7B7F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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