#798229#798229

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

Color values

HEX#798229
RGBrgb(121, 130, 41)
HSLhsl(66, 52%, 34%)
HSVhsv(66, 68%, 51%)
CMYKcmyk(6.9%, 0%, 68.5%, 49%)
CIE-LABlab(52.05, -15.72, 45.06)
CIE-LCHlch(52.05, 47.72, 109.23°)
OKLaboklab(58.13% -0.0471 0.1016)
OKLCHoklch(58.13% 0.112 114.9)
XYZxyz(16.2684, 20.1906, 5.1376)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798229 #322982
analogous
#825E29 #798229 #4C8229
triadic
#798229 #297982 #822979
tetradic
#798229 #29825E #322982 #82294C
square
#798229 #29825E #322982 #82294C
split-complementary
#798229 #294C82 #5E2982
monochromatic
#22250C #4E531A #798229 #A4B138 #C0CB5A

Accessibility & contrast

On white

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

On black

5.04
#798229 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798229
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798229#FFFFFF#000000##000000
##7982291.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1C
Deuteranopia (green-blind)
#8B7D2F
Tritanopia (blue-blind)
#817A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798229;
/* rgb */ color: rgb(121, 130, 41);
/* oklch */ color: oklch(58.1% 0.112 114.9);
Tailwind
colors: {
  custom: {
    50: '#a2a668',
    500: '#798229',
    950: '#000000',
  },
}
SCSS
$custom: #798229;
$custom-light: #a2a668;
$custom-dark: #000000;
JSON
{
  "hex": "#798229",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 41
  },
  "hsl": {
    "h": 66.067,
    "s": 52.047,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58125,
    "c": 0.11199,
    "h": 114.9
  },
  "luminance": 0.2019
}

Semantic roles & 50–950 ramp

primary
#798229
secondary
#5F56B0
accent
#4CDB5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798229

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

Preview Lab → · Contrast checker → · Palette generator →

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