#798223#798223

#798223 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.1% C 0.116 H 114.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#798223
RGBrgb(121, 130, 35)
HSLhsl(66, 58%, 32%)
HSVhsv(66, 73%, 51%)
CMYKcmyk(6.9%, 0%, 73.1%, 49%)
CIE-LABlab(52.01, -16.08, 47.46)
CIE-LCHlch(52.01, 50.11, 108.72°)
OKLaboklab(58.08% -0.0488 0.1056)
OKLCHoklch(58.08% 0.116 114.8)
XYZxyz(16.1716, 20.1518, 4.6276)
Luminance0.2015 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798223 #2C2382
analogous
#825B23 #798223 #4A8223
triadic
#798223 #237982 #822379
tetradic
#798223 #23825B #2C2382 #82234A
square
#798223 #23825B #2C2382 #82234A
split-complementary
#798223 #234A82 #5B2382
monochromatic
#1F2209 #4C5216 #798223 #A6B230 #C4D050

Accessibility & contrast

On white

4.17
#798223 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#798223 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798223
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798223#FFFFFF#000000##000000
##7982231.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B12
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#817A6F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798223;
/* rgb */ color: rgb(121, 130, 35);
/* oklch */ color: oklch(58.1% 0.116 114.8);
Tailwind
colors: {
  custom: {
    50: '#a3a665',
    500: '#798223',
    950: '#000000',
  },
}
SCSS
$custom: #798223;
$custom-light: #a3a665;
$custom-dark: #000000;
JSON
{
  "hex": "#798223",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 35
  },
  "hsl": {
    "h": 65.684,
    "s": 57.576,
    "l": 32.353
  },
  "oklch": {
    "l": 0.58076,
    "c": 0.11633,
    "h": 114.8
  },
  "luminance": 0.20152
}

Semantic roles & 50–950 ramp

primary
#798223
secondary
#574DB3
accent
#47E156
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798223

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

Preview Lab → · Contrast checker → · Palette generator →

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