#AFA837#AFA837

#AFA837 is a light, vivid yellow. Relative luminance 0.374; OKLCH L 71.7% C 0.132 H 105.8°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#AFA837
RGBrgb(175, 168, 55)
HSLhsl(57, 52%, 45%)
HSVhsv(57, 69%, 69%)
CMYKcmyk(0%, 4%, 68.6%, 31.4%)
CIE-LABlab(67.57, -11.05, 56.56)
CIE-LCHlch(67.57, 57.63, 101.05°)
OKLaboklab(71.67% -0.0358 0.1266)
OKLCHoklch(71.67% 0.132 105.8)
XYZxyz(32.3727, 37.3962, 9.1266)
Luminance0.3740 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA837 #373EAF
analogous
#AF6C37 #AFA837 #7AAF37
triadic
#AFA837 #37AFA8 #A837AF
tetradic
#AFA837 #37AF6C #373EAF #AF377A
square
#AFA837 #37AF6C #373EAF #AF377A
split-complementary
#AFA837 #377AAF #6C37AF
monochromatic
#524F1A #807B28 #AFA837 #CBC459 #D9D587

Accessibility & contrast

On white

2.48
#AFA837 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#AFA837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA837
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA837#FFFFFF#000000##000000
##AFA8371.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A226
Deuteranopia (green-blind)
#B9A73E
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa837;
/* rgb */ color: rgb(175, 168, 55);
/* oklch */ color: oklch(71.7% 0.132 105.8);
Tailwind
colors: {
  custom: {
    50: '#cac175',
    500: '#afa837',
    950: '#000000',
  },
}
SCSS
$custom: #afa837;
$custom-light: #cac175;
$custom-dark: #000000;
JSON
{
  "hex": "#afa837",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 55
  },
  "hsl": {
    "h": 56.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.71666,
    "c": 0.13154,
    "h": 105.8
  },
  "luminance": 0.37395
}

Semantic roles & 50–950 ramp

primary
#AFA837
secondary
#7F83C3
accent
#55DC4C
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA837

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

Preview Lab → · Contrast checker → · Palette generator →

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