#7B7015#7B7015

#7B7015 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 53.9% C 0.105 H 102.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7B7015
RGBrgb(123, 112, 21)
HSLhsl(54, 71%, 28%)
HSVhsv(54, 83%, 48%)
CMYKcmyk(0%, 8.9%, 82.9%, 51.8%)
CIE-LABlab(46.78, -5.94, 47.66)
CIE-LCHlch(46.78, 48.03, 97.10°)
OKLaboklab(53.92% -0.0219 0.1032)
OKLCHoklch(53.92% 0.105 102)
XYZxyz(14.0986, 15.8541, 3.0268)
Luminance0.1585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B7015 #15207B
analogous
#7B3D15 #7B7015 #537B15
triadic
#7B7015 #157B70 #70157B
tetradic
#7B7015 #157B3D #15207B #7B1553
square
#7B7015 #157B3D #15207B #7B1553
split-complementary
#7B7015 #15537B #3D157B
monochromatic
#1A1804 #47400C #7B7015 #AFA01E #DBC92F

Accessibility & contrast

On white

5.04
#7B7015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7B7015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B7015
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B7015#FFFFFF#000000##FFFFFF
##7B70151.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#7F711C
Tritanopia (blue-blind)
#85675F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b7015;
/* rgb */ color: rgb(123, 112, 21);
/* oklch */ color: oklch(53.9% 0.105 102.0);
Tailwind
colors: {
  custom: {
    50: '#a5985c',
    500: '#7b7015',
    950: '#000000',
  },
}
SCSS
$custom: #7b7015;
$custom-light: #a5985c;
$custom-dark: #000000;
JSON
{
  "hex": "#7b7015",
  "rgb": {
    "r": 123,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 53.529,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53921,
    "c": 0.10549,
    "h": 102
  },
  "luminance": 0.15853
}

Semantic roles & 50–950 ramp

primary
#7B7015
secondary
#3B48B0
accent
#4EEE3A
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7B7015

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

Preview Lab → · Contrast checker → · Palette generator →

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