#AFA834#AFA834

#AFA834 is a light, vivid yellow. Relative luminance 0.374; OKLCH L 71.6% C 0.134 H 105.9°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#AFA834
RGBrgb(175, 168, 52)
HSLhsl(57, 54%, 45%)
HSVhsv(57, 70%, 69%)
CMYKcmyk(0%, 4%, 70.3%, 31.4%)
CIE-LABlab(67.55, -11.21, 57.72)
CIE-LCHlch(67.55, 58.80, 100.99°)
OKLaboklab(71.64% -0.0365 0.1285)
OKLCHoklch(71.64% 0.134 105.9)
XYZxyz(32.3029, 37.3683, 8.7594)
Luminance0.3737 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA834 #343BAF
analogous
#AF6A34 #AFA834 #79AF34
triadic
#AFA834 #34AFA8 #A834AF
tetradic
#AFA834 #34AF6A #343BAF #AF3479
square
#AFA834 #34AF6A #343BAF #AF3479
split-complementary
#AFA834 #3479AF #6A34AF
monochromatic
#514D18 #807B26 #AFA834 #CCC554 #DAD583

Accessibility & contrast

On white

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

On black

8.47
#AFA834 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA834
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA834#FFFFFF#000000##000000
##AFA8341.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A222
Deuteranopia (green-blind)
#B9A73C
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa834;
/* rgb */ color: rgb(175, 168, 52);
/* oklch */ color: oklch(71.6% 0.134 105.9);
Tailwind
colors: {
  custom: {
    50: '#cac173',
    500: '#afa834',
    950: '#000000',
  },
}
SCSS
$custom: #afa834;
$custom-light: #cac173;
$custom-dark: #000000;
JSON
{
  "hex": "#afa834",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 52
  },
  "hsl": {
    "h": 56.585,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.71643,
    "c": 0.1336,
    "h": 105.9
  },
  "luminance": 0.37367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA834

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

Preview Lab → · Contrast checker → · Palette generator →

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