#7B731F#7B731F

#7B731F is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.7% C 0.102 H 103.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7B731F
RGBrgb(123, 115, 31)
HSLhsl(55, 60%, 30%)
HSVhsv(55, 75%, 48%)
CMYKcmyk(0%, 6.5%, 74.8%, 51.8%)
CIE-LABlab(47.72, -7.18, 44.91)
CIE-LCHlch(47.72, 45.48, 99.09°)
OKLaboklab(54.68% -0.0244 0.0994)
OKLCHoklch(54.68% 0.102 103.8)
XYZxyz(14.5471, 16.5719, 3.7285)
Luminance0.1657 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B731F #1F277B
analogous
#7B451F #7B731F #557B1F
triadic
#7B731F #1F7B73 #731F7B
tetradic
#7B731F #1F7B45 #1F277B #7B1F55
square
#7B731F #1F7B45 #1F277B #7B1F55
split-complementary
#7B731F #1F557B #451F7B
monochromatic
#191806 #4A4513 #7B731F #ACA12B #D0C444

Accessibility & contrast

On white

4.87
#7B731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7B731F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B731F
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B731F#FFFFFF#000000##FFFFFF
##7B731F1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F11
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#856B63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b731f;
/* rgb */ color: rgb(123, 115, 31);
/* oklch */ color: oklch(54.7% 0.102 103.8);
Tailwind
colors: {
  custom: {
    50: '#a49b61',
    500: '#7b731f',
    950: '#000000',
  },
}
SCSS
$custom: #7b731f;
$custom-light: #a49b61;
$custom-dark: #000000;
JSON
{
  "hex": "#7b731f",
  "rgb": {
    "r": 123,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 54.783,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54682,
    "c": 0.10235,
    "h": 103.8
  },
  "luminance": 0.16571
}

Semantic roles & 50–950 ramp

primary
#7B731F
secondary
#4850AE
accent
#53E345
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B731F

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

Preview Lab → · Contrast checker → · Palette generator →

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