#AF9827#AF9827

#AF9827 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.1% C 0.128 H 97.0°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#AF9827
RGBrgb(175, 152, 39)
HSLhsl(50, 64%, 42%)
HSVhsv(50, 78%, 69%)
CMYKcmyk(0%, 13.1%, 77.7%, 31.4%)
CIE-LABlab(63.11, -3.32, 58.23)
CIE-LCHlch(63.11, 58.33, 93.26°)
OKLaboklab(68.09% -0.0156 0.1271)
OKLCHoklch(68.09% 0.128 97)
XYZxyz(29.2752, 31.7185, 6.4994)
Luminance0.3172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9827 #273EAF
analogous
#AF5427 #AF9827 #82AF27
triadic
#AF9827 #27AF98 #9827AF
tetradic
#AF9827 #27AF54 #273EAF #AF2782
square
#AF9827 #27AF54 #273EAF #AF2782
split-complementary
#AF9827 #2782AF #5427AF
monochromatic
#4B4111 #7D6D1C #AF9827 #D4BB3F #DFCD71

Accessibility & contrast

On white

2.86
#AF9827 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#AF9827 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9827
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9827#FFFFFF#000000##000000
##AF98271.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8940E
Deuteranopia (green-blind)
#AE9C2F
Tritanopia (blue-blind)
#BD8C83
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9827;
/* rgb */ color: rgb(175, 152, 39);
/* oklch */ color: oklch(68.1% 0.128 97.0);
Tailwind
colors: {
  custom: {
    50: '#cbb56b',
    500: '#af9827',
    950: '#000000',
  },
}
SCSS
$custom: #af9827;
$custom-light: #cbb56b;
$custom-dark: #000000;
JSON
{
  "hex": "#af9827",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 39
  },
  "hsl": {
    "h": 49.853,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.68089,
    "c": 0.12806,
    "h": 97
  },
  "luminance": 0.31717
}

Semantic roles & 50–950 ramp

primary
#AF9827
secondary
#6B7BC6
accent
#5DE741
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9827

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

Preview Lab → · Contrast checker → · Palette generator →

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