#7F7518#7F7518

#7F7518 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.5% C 0.108 H 102.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F7518
RGBrgb(127, 117, 24)
HSLhsl(54, 68%, 30%)
HSVhsv(54, 81%, 50%)
CMYKcmyk(0%, 7.9%, 81.1%, 50.2%)
CIE-LABlab(48.64, -6.74, 48.47)
CIE-LCHlch(48.64, 48.94, 97.92°)
OKLaboklab(55.49% -0.0241 0.1054)
OKLCHoklch(55.49% 0.108 102.9)
XYZxyz(15.2793, 17.3012, 3.3986)
Luminance0.1730 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7518 #18227F
analogous
#7F4218 #7F7518 #567F18
triadic
#7F7518 #187F75 #75187F
tetradic
#7F7518 #187F42 #18227F #7F1856
square
#7F7518 #187F42 #18227F #7F1856
split-complementary
#7F7518 #18567F #42187F
monochromatic
#1A1805 #4C460E #7F7518 #B2A422 #D9CA38

Accessibility & contrast

On white

4.71
#7F7518 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7F7518 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7518
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7518#FFFFFF#000000##FFFFFF
##7F75181.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817101
Deuteranopia (green-blind)
#84751F
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7518;
/* rgb */ color: rgb(127, 117, 24);
/* oklch */ color: oklch(55.5% 0.108 102.9);
Tailwind
colors: {
  custom: {
    50: '#a89c5e',
    500: '#7f7518',
    950: '#000000',
  },
}
SCSS
$custom: #7f7518;
$custom-light: #a89c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7518",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 24
  },
  "hsl": {
    "h": 54.175,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55492,
    "c": 0.1081,
    "h": 102.9
  },
  "luminance": 0.17301
}

Semantic roles & 50–950 ramp

primary
#7F7518
secondary
#3F4BB3
accent
#4EEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7518

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

Preview Lab → · Contrast checker → · Palette generator →

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