#7F7B18#7F7B18

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

Color values

HEX#7F7B18
RGBrgb(127, 123, 24)
HSLhsl(58, 68%, 30%)
HSVhsv(58, 81%, 50%)
CMYKcmyk(0%, 3.1%, 81.1%, 50.2%)
CIE-LABlab(50.39, -10.07, 50.04)
CIE-LCHlch(50.39, 51.04, 101.38°)
OKLaboklab(56.89% -0.0334 0.1087)
OKLCHoklch(56.89% 0.114 107.1)
XYZxyz(16.0009, 18.7445, 3.6392)
Luminance0.1874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7B18 #181C7F
analogous
#7F4818 #7F7B18 #507F18
triadic
#7F7B18 #187F7B #7B187F
tetradic
#7F7B18 #187F48 #181C7F #7F1850
square
#7F7B18 #187F48 #181C7F #7F1850
split-complementary
#7F7B18 #18507F #48187F
monochromatic
#1A1905 #4C490E #7F7B18 #B2AD22 #D9D338

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7B18#FFFFFF#000000##000000
##7F7B181.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)
#867600
Deuteranopia (green-blind)
#887A21
Tritanopia (blue-blind)
#897269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7f7b18;
/* rgb */ color: rgb(127, 123, 24);
/* oklch */ color: oklch(56.9% 0.114 107.1);
Tailwind
colors: {
  custom: {
    50: '#a8a05f',
    500: '#7f7b18',
    950: '#000000',
  },
}
SCSS
$custom: #7f7b18;
$custom-light: #a8a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7b18",
  "rgb": {
    "r": 127,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 57.67,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56885,
    "c": 0.11374,
    "h": 107.1
  },
  "luminance": 0.18744
}

Semantic roles & 50–950 ramp

primary
#7F7B18
secondary
#3F44B3
accent
#44EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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