#AF9834#AF9834

#AF9834 is a light, moderate yellow. Relative luminance 0.318; OKLCH L 68.2% C 0.120 H 96.0°. Best body text is #000000 at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#AF9834
RGBrgb(175, 152, 52)
HSLhsl(49, 54%, 45%)
HSVhsv(49, 70%, 69%)
CMYKcmyk(0%, 13.1%, 70.3%, 31.4%)
CIE-LABlab(63.19, -2.71, 53.36)
CIE-LCHlch(63.19, 53.42, 92.91°)
OKLaboklab(68.18% -0.0124 0.1193)
OKLCHoklch(68.18% 0.12 96)
XYZxyz(29.5287, 31.8199, 7.8346)
Luminance0.3182 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9834 #344BAF
analogous
#AF5A34 #AF9834 #89AF34
triadic
#AF9834 #34AF98 #9834AF
tetradic
#AF9834 #34AF5A #344BAF #AF3489
square
#AF9834 #34AF5A #344BAF #AF3489
split-complementary
#AF9834 #3489AF #5A34AF
monochromatic
#514618 #806F26 #AF9834 #CCB654 #DACA83

Accessibility & contrast

On white

2.85
#AF9834 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.36
#AF9834 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9834
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9834#FFFFFF#000000##000000
##AF98341.002.857.367.36
#FFFFFF2.851.0021.0021.00
#0000007.3621.001.001.00
##0000007.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79526
Deuteranopia (green-blind)
#AD9C3A
Tritanopia (blue-blind)
#BD8C84
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9834;
/* rgb */ color: rgb(175, 152, 52);
/* oklch */ color: oklch(68.2% 0.120 96.0);
Tailwind
colors: {
  custom: {
    50: '#cab671',
    500: '#af9834',
    950: '#000000',
  },
}
SCSS
$custom: #af9834;
$custom-light: #cab671;
$custom-dark: #000000;
JSON
{
  "hex": "#af9834",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 52
  },
  "hsl": {
    "h": 48.78,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.68182,
    "c": 0.11993,
    "h": 96
  },
  "luminance": 0.31818
}

Semantic roles & 50–950 ramp

primary
#AF9834
secondary
#7B89C4
accent
#66DE4A
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9834

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

Preview Lab → · Contrast checker → · Palette generator →

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