#AFB340#AFB340

#AFB340 is a light, vivid yellow. Relative luminance 0.417; OKLCH L 74.2% C 0.136 H 111.2°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#AFB340
RGBrgb(175, 179, 64)
HSLhsl(62, 47%, 48%)
HSVhsv(62, 64%, 70%)
CMYKcmyk(2.2%, 0%, 64.2%, 29.8%)
CIE-LABlab(70.68, -16.18, 56.09)
CIE-LCHlch(70.68, 58.38, 106.09°)
OKLaboklab(74.17% -0.0493 0.127)
OKLCHoklch(74.17% 0.136 111.2)
XYZxyz(34.7257, 41.7252, 11.0740)
Luminance0.4172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB340 #4440B3
analogous
#B37D40 #AFB340 #75B340
triadic
#AFB340 #40AFB3 #B340AF
tetradic
#AFB340 #40B37D #4440B3 #B34075
square
#AFB340 #40B37D #4440B3 #B34075
split-complementary
#AFB340 #4075B3 #7D40B3
monochromatic
#575920 #838630 #AFB340 #C5C967 #D7D994

Accessibility & contrast

On white

2.25
#AFB340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#AFB340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB340
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB340#FFFFFF#000000##000000
##AFB3401.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AB31
Deuteranopia (green-blind)
#C1AE48
Tritanopia (blue-blind)
#BBA89B
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afb340;
/* rgb */ color: rgb(175, 179, 64);
/* oklch */ color: oklch(74.2% 0.136 111.2);
Tailwind
colors: {
  custom: {
    50: '#cac97b',
    500: '#afb340',
    950: '#000000',
  },
}
SCSS
$custom: #afb340;
$custom-light: #cac97b;
$custom-dark: #000000;
JSON
{
  "hex": "#afb340",
  "rgb": {
    "r": 175,
    "g": 179,
    "b": 64
  },
  "hsl": {
    "h": 62.087,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.74167,
    "c": 0.13627,
    "h": 111.2
  },
  "luminance": 0.41724
}

Semantic roles & 50–950 ramp

primary
#AFB340
secondary
#8C8AC4
accent
#51D756
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB340

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

Preview Lab → · Contrast checker → · Palette generator →

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