#7B7F18#7B7F18

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

Color values

HEX#7B7F18
RGBrgb(123, 127, 24)
HSLhsl(62, 68%, 30%)
HSVhsv(62, 81%, 50%)
CMYKcmyk(3.1%, 0%, 81.1%, 50.2%)
CIE-LABlab(51.22, -14.09, 50.64)
CIE-LCHlch(51.22, 52.57, 105.55°)
OKLaboklab(57.46% -0.0444 0.1102)
OKLCHoklch(57.46% 0.119 111.9)
XYZxyz(15.9232, 19.4561, 3.7806)
Luminance0.1946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7F18 #1C187F
analogous
#7F5018 #7B7F18 #487F18
triadic
#7B7F18 #187B7F #7F187B
tetradic
#7B7F18 #187F50 #1C187F #7F1848
square
#7B7F18 #187F50 #1C187F #7F1848
split-complementary
#7B7F18 #18487F #50187F
monochromatic
#191A05 #494C0E #7B7F18 #ADB222 #D3D938

Accessibility & contrast

On white

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

On black

4.89
#7B7F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B7F18
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7F18#FFFFFF#000000##000000
##7B7F181.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#8A7B22
Tritanopia (blue-blind)
#84776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7b7f18;
/* rgb */ color: rgb(123, 127, 24);
/* oklch */ color: oklch(57.5% 0.119 111.9);
Tailwind
colors: {
  custom: {
    50: '#a4a35f',
    500: '#7b7f18',
    950: '#000000',
  },
}
SCSS
$custom: #7b7f18;
$custom-light: #a4a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7f18",
  "rgb": {
    "r": 123,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 62.33,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57463,
    "c": 0.11881,
    "h": 111.9
  },
  "luminance": 0.19456
}

Semantic roles & 50–950 ramp

primary
#7B7F18
secondary
#443FB3
accent
#3DEB44
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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