#AFA934#AFA934

#AFA934 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.135 H 106.4°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA934
RGBrgb(175, 169, 52)
HSLhsl(57, 54%, 45%)
HSVhsv(57, 70%, 69%)
CMYKcmyk(0%, 3.4%, 70.3%, 31.4%)
CIE-LABlab(67.83, -11.73, 57.99)
CIE-LCHlch(67.83, 59.16, 101.44°)
OKLaboklab(71.86% -0.038 0.1291)
OKLCHoklch(71.86% 0.135 106.4)
XYZxyz(32.4883, 37.7390, 8.8212)
Luminance0.3774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA934 #343AAF
analogous
#AF6C34 #AFA934 #78AF34
triadic
#AFA934 #34AFA9 #A934AF
tetradic
#AFA934 #34AF6C #343AAF #AF3478
square
#AFA934 #34AF6C #343AAF #AF3478
split-complementary
#AFA934 #3478AF #6C34AF
monochromatic
#514E18 #807B26 #AFA934 #CCC654 #DAD683

Accessibility & contrast

On white

2.46
#AFA934 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA934 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA934
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA934#FFFFFF#000000##000000
##AFA9341.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A321
Deuteranopia (green-blind)
#BAA73C
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa934;
/* rgb */ color: rgb(175, 169, 52);
/* oklch */ color: oklch(71.9% 0.135 106.4);
Tailwind
colors: {
  custom: {
    50: '#cac273',
    500: '#afa934',
    950: '#000000',
  },
}
SCSS
$custom: #afa934;
$custom-light: #cac273;
$custom-dark: #000000;
JSON
{
  "hex": "#afa934",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 52
  },
  "hsl": {
    "h": 57.073,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71862,
    "c": 0.13455,
    "h": 106.4
  },
  "luminance": 0.37738
}

Semantic roles & 50–950 ramp

primary
#AFA934
secondary
#7B7FC4
accent
#51DE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA934

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

Preview Lab → · Contrast checker → · Palette generator →

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