#797023#797023

#797023 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 53.8% C 0.097 H 102.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#797023
RGBrgb(121, 112, 35)
HSLhsl(54, 55%, 31%)
HSVhsv(54, 71%, 47%)
CMYKcmyk(0%, 7.4%, 71.1%, 52.5%)
CIE-LABlab(46.68, -6.21, 42.15)
CIE-LCHlch(46.68, 42.60, 98.38°)
OKLaboklab(53.82% -0.0211 0.0944)
OKLCHoklch(53.82% 0.097 102.6)
XYZxyz(13.9833, 15.7752, 3.8981)
Luminance0.1578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797023 #232C79
analogous
#794523 #797023 #577923
triadic
#797023 #237970 #702379
tetradic
#797023 #237945 #232C79 #792357
square
#797023 #237945 #232C79 #792357
split-complementary
#797023 #235779 #452379
monochromatic
#1A1808 #4A4415 #797023 #A89C31 #CBBE4B

Accessibility & contrast

On white

5.05
#797023 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#797023 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797023
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797023#FFFFFF#000000##FFFFFF
##7970231.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6C18
Deuteranopia (green-blind)
#7D7028
Tritanopia (blue-blind)
#826860
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797023;
/* rgb */ color: rgb(121, 112, 35);
/* oklch */ color: oklch(53.8% 0.097 102.6);
Tailwind
colors: {
  custom: {
    50: '#a29863',
    500: '#797023',
    950: '#000000',
  },
}
SCSS
$custom: #797023;
$custom-light: #a29863;
$custom-dark: #000000;
JSON
{
  "hex": "#797023",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 35
  },
  "hsl": {
    "h": 53.721,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5382,
    "c": 0.09673,
    "h": 102.6
  },
  "luminance": 0.15775
}

Semantic roles & 50–950 ramp

primary
#797023
secondary
#4C56AC
accent
#59DE49
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #797023

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

Preview Lab → · Contrast checker → · Palette generator →

#797023 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva