#AF9843#AF9843

#AF9843 is a light, moderate yellow. Relative luminance 0.320; OKLCH L 68.3% C 0.108 H 94.2°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#AF9843
RGBrgb(175, 152, 67)
HSLhsl(47, 45%, 47%)
HSVhsv(47, 62%, 69%)
CMYKcmyk(0%, 13.1%, 61.7%, 31.4%)
CIE-LABlab(63.32, -1.78, 46.82)
CIE-LCHlch(63.32, 46.85, 92.17°)
OKLaboklab(68.33% -0.0079 0.1078)
OKLCHoklch(68.33% 0.108 94.2)
XYZxyz(29.9219, 31.9772, 9.9052)
Luminance0.3198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9843 #435AAF
analogous
#AF6243 #AF9843 #90AF43
triadic
#AF9843 #43AF98 #9843AF
tetradic
#AF9843 #43AF62 #435AAF #AF4390
square
#AF9843 #43AF62 #435AAF #AF4390
split-complementary
#AF9843 #4390AF #6243AF
monochromatic
#564B21 #837232 #AF9843 #C6B269 #D7C996

Accessibility & contrast

On white

2.84
#AF9843 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#AF9843 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9843
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9843#FFFFFF#000000##000000
##AF98431.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7953A
Deuteranopia (green-blind)
#AC9C47
Tritanopia (blue-blind)
#BC8D85
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9843;
/* rgb */ color: rgb(175, 152, 67);
/* oklch */ color: oklch(68.3% 0.108 94.2);
Tailwind
colors: {
  custom: {
    50: '#cab67a',
    500: '#af9843',
    950: '#000000',
  },
}
SCSS
$custom: #af9843;
$custom-light: #cab67a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9843",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 67
  },
  "hsl": {
    "h": 47.222,
    "s": 44.628,
    "l": 47.451
  },
  "oklch": {
    "l": 0.68327,
    "c": 0.10809,
    "h": 94.2
  },
  "luminance": 0.31976
}

Semantic roles & 50–950 ramp

primary
#AF9843
secondary
#8B97C2
accent
#6FD453
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141109
muted
#82807B

Preview Lab

Preview with #AF9843

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

Preview Lab → · Contrast checker → · Palette generator →

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