#798233#798233

#798233 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.2% C 0.104 H 115.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#798233
RGBrgb(121, 130, 51)
HSLhsl(67, 44%, 35%)
HSVhsv(67, 61%, 51%)
CMYKcmyk(6.9%, 0%, 60.8%, 49%)
CIE-LABlab(52.14, -14.98, 40.64)
CIE-LCHlch(52.14, 43.31, 110.23°)
OKLaboklab(58.22% -0.044 0.0937)
OKLCHoklch(58.22% 0.104 115.1)
XYZxyz(16.4657, 20.2695, 6.1763)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798233 #3C3382
analogous
#826333 #798233 #528233
triadic
#798233 #337982 #823379
tetradic
#798233 #338263 #3C3382 #823352
square
#798233 #338263 #3C3382 #823352
split-complementary
#798233 #335282 #633382
monochromatic
#272A11 #505622 #798233 #A2AE44 #BBC56B

Accessibility & contrast

On white

4.16
#798233 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#798233 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798233
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798233#FFFFFF#000000##000000
##7982331.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C2A
Deuteranopia (green-blind)
#8A7D38
Tritanopia (blue-blind)
#807B71
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798233;
/* rgb */ color: rgb(121, 130, 51);
/* oklch */ color: oklch(58.2% 0.104 115.1);
Tailwind
colors: {
  custom: {
    50: '#a2a66e',
    500: '#798233',
    950: '#000000',
  },
}
SCSS
$custom: #798233;
$custom-light: #a2a66e;
$custom-dark: #000000;
JSON
{
  "hex": "#798233",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 51
  },
  "hsl": {
    "h": 66.835,
    "s": 43.646,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58224,
    "c": 0.10354,
    "h": 115.1
  },
  "luminance": 0.20269
}

Semantic roles & 50–950 ramp

primary
#798233
secondary
#6C64AD
accent
#54D363
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #798233

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

Preview Lab → · Contrast checker → · Palette generator →

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